public interface DatabaseSync
The DatabaseSync
interface in the IndexedDB API represents a synchronous connection to a database.
Modifier and Type | Method and Description |
---|---|
void |
changeVersion(String oldVersion,
String newVersion) |
void |
changeVersion(String oldVersion,
String newVersion,
SQLTransactionSyncCallback callback) |
String |
getLastErrorMessage() |
String |
getVersion()
The version of the connected database.
|
void |
readTransaction(SQLTransactionSyncCallback callback) |
void |
transaction(SQLTransactionSyncCallback callback)
Creates and returns a transaction, acquiring locks on the given database objects, within the specified timeout duration, if possible.
|
String getLastErrorMessage()
String getVersion()
void changeVersion(String oldVersion, String newVersion, SQLTransactionSyncCallback callback)
void readTransaction(SQLTransactionSyncCallback callback)
void transaction(SQLTransactionSyncCallback callback)
Creates and returns a transaction, acquiring locks on the given database objects, within the specified timeout duration, if possible.
IDBTransactionSync transaction ( in optional DOMStringList storeNames, in optional unsigned int timeout ) raises (IDBDatabaseException);
storeNames
.IDBTransactionSync
This method can raise an IDBDatabaseException with the following code:
TIMEOUT_ERR
storeNames
takes longer than the timeout
interval.Copyright © 2018. All rights reserved.