The name of the IndexedDB database.
Request to close the database connection.
If there are no open transactions, this will close immediately. If any transactions are open, it will wait for them to complete before closing. This happens asynchronously, out of band.
Get a value from a store.
Resolves to undefined
if no value exists for the given key in the given
store.
Create or update a value in a store.
Create a transaction on one or more stores.
The stores to open the transaction over.
A callback for the transaction to call. Be aware that this callback, although possibly asynchronous, needs to be updating the transaction every tick. If no changes to the transaction happen in a tick, it will automatically commit itself and the transaction will close.
The mode to open the transaction in.
Open a new database connection.
The name of the database.
The schema version you want to open. This can only ever increase. See OpenOptions.upgrade for how to upgrade the schema when changing version.
The options and callbacks for opening the database. See OpenOptions for details.
A promise to an open Database ready to be accessed.
Generated using TypeDoc
A wrapper for an IndexedDB connection.
Call Database.open to create a new database connection.
The schema for the database, along with the allowed names for databases using that schema.