IDBTransactionSync interface of the IndexedDB API provides a synchronous transaction on a database. When an application creates an IDBTransactionSync object, it blocks until the browser is able to reserve the require database objects.
| || ||The database connection that this transaction is associated with.|
| || ||If true, this transaction is static; if false, this transaction is dynamic.|
Call this method to signal a need to cancel the effects of the operations performed by this transaction. When this method is called, the browser ignores all the changes performed to the objects of this database since this transaction was created.
void abort( ) raises (IDBDatabaseException);
This method can raise an IDBDatabaseException with the following code:
- If this transaction has already been committed or aborted.
Call this method to signal that the transaction has completed normally and satisfactorily. When this method is called, the browser durably stores all the changes performed to the objects of the database since this transaction was created.
void commit( ) raises (IDBDatabaseException);
Returns an object store that has already been added to the scope of this transaction.
in DOMString name
) raises (IDBDatabaseException);
- The name of the requested object store.
- An object for accessing the requested object store.
The method can raise an IDBDatabaseException with the following code:
- If the requested object store is not in this transaction's scope.