You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: index.bs
+8-14Lines changed: 8 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -900,7 +900,9 @@ and data mutation operations.
900
900
All transactions are created through a [=/connection=], which is the
901
901
transaction's <dfn>connection</dfn>.
902
902
903
-
A [=/transaction=] has a <dfn>scope</dfn> which is a [=/set=] of [=/object stores=] that the transaction may interact with. A transaction's scope remains fixed for the lifetime of that transaction.
903
+
A [=/transaction=] has a <dfn>scope</dfn> which is a [=/set=] of [=/object stores=] that the transaction may interact with.
904
+
905
+
Note: A [=/transaction=]'s [=scope=] remains fixed unless the [=/transaction=] is an [=/upgrade transaction=].
904
906
905
907
Two [=/transactions=] have <dfn lt="overlap|overlapping scope">overlapping scope</dfn> if any [=/object store=] is in both transactions' [=transaction/scope=].
906
908
@@ -4773,15 +4775,7 @@ enum IDBTransactionMode {
4773
4775
4774
4776
<div algorithm>
4775
4777
4776
-
The <dfn attribute for=IDBTransaction>objectStoreNames</dfn> getter steps are:
4777
-
4778
-
1. If [=/this=] is an [=/upgrade transaction=],
4779
-
then return a new {{DOMStringList}} associated with a [=sorted name list=] of the [=object-store/names=]
4780
-
of the [=/object stores=] in [=/this=]'s [=/connection=]'s [=object store set=].
4781
-
4782
-
1. Otherwise, return a new {{DOMStringList}} associated with a [=sorted name list=] of the
4783
-
[=object-store/names=] of the [=/object stores=] in
4784
-
[=/this=]'s [=transaction/scope=].
4778
+
The <dfn attribute for=IDBTransaction>objectStoreNames</dfn> getter steps are to return a new {{DOMStringList}} associated with a [=sorted name list=] of the [=object-store/names=] of the [=/object stores=] in [=/this=]'s [=transaction/scope=].
4785
4779
4786
4780
</div>
4787
4781
@@ -5310,16 +5304,16 @@ created [=/request=] belongs to is [=transaction/aborted=] using the steps to
5310
5304
5311
5305
<div algorithm>
5312
5306
5313
-
To <dfn>run an upgrade transaction</dfn> with a |connection| object
5307
+
To <dfn>run an upgrade transaction</dfn> with |connection| (a [=/connection=])
5314
5308
which is used to update the [=database=], a new |version| to be set
5315
5309
for the [=database=], and a |request|, run these steps:
5316
5310
5317
5311
1. Let |db| be |connection|'s [=database=].
5318
5312
5319
5313
1. Let |transaction| be a new [=/upgrade transaction=] with
5320
-
|connection| used as [=/connection=]. The [=transaction/scope=] of
5321
-
|transaction| includes every [=/object store=] in
5322
-
|connection|.
5314
+
|connection| used as [=/connection=].
5315
+
5316
+
1. Set |transaction|'s [=transaction/scope=] to |connection|'s [=object store set=].
5323
5317
5324
5318
1. Set |db|'s [=database/upgrade transaction=] to |transaction|.
0 commit comments