
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.IDBTransactionSyncThis method can raise an IDBDatabaseException with the following code:
TIMEOUT_ERRstoreNames takes longer than the timeout interval.Copyright © 2016. All rights reserved.