+ A connection has a version, which is
+ set when the connection is created. It remains constant
+ for the lifetime of the connection unless an
+ upgrade is aborted, in
+ which case it is set to the previous version of the database. Once
+ the connection is closed the version
+ does not change.
+
Each connection has a
close pending flag which is initially unset.
@@ -484,13 +493,14 @@
Database Connection
- A connection has an object store set, which is set to the
+ A connection has an object store set, which is initialized to the
set of object stores in the associated database
when the connection is created.
The contents of the set will remain constant except when
an upgrade transaction is running.
- The version attribute's getter must return the version of the
- database when the connection was created.
- When an IDBDatabase instance is created,
- this is always the number given as the version
- argument given to the open
- call used to create the IDBDatabase instance. This value remains constant for the lifetime of the IDBDatabase object.
- If the connection is closed, this attribute represents a
- snapshot of the version that the database had when the connection
- was closed. Even if another connection is later used to modify the
- version, that attribute on closed instances are not changed.
+ The version attribute's getter must return this
+ connection's version.
+
- Revert database's version to the value it had before the transaction was started
- if the database previously existed, or 0 (zero) if the database was newly created.
+ Set connection's version to database's version
+ if database previously existed,
+ or 0 (zero) if database was newly created
+
- Revert connection's object store set to the value it had before the transaction was started
- if the database previously existed, or an empty set if the database was newly created.
+ Set connection's object store set to the
+ set of object stores in database
+ if database previously existed,
+ or the empty set if database was newly created.
+
- For each object store handlestore associated with transaction
- revert store's index set to the value it had before the transaction was started
- if the object store previously existed, or an empty set if the object store was newly created.
-
+ For each object store handlestore associated with transaction,
+ including handles for stores
+ that were deleted during transaction,
+ set store's index set to the
+ set of indexes that reference the associated object store.
+ This reverts the value of indexNames returned by related IDBObjectStore objects.
-