An indexed database object for storing client-side data in web apps.
Checks to see if Indexed DB is supported on the current platform.
Checks to see if getDatabaseNames is supported by the current platform.
Creates a stream of cursors over the records in this object store.
See also:
ObjectStore.openCursor
Creates a stream of cursors over the records in this object store.
See also:
ObjectStore.openCursor
Creates a stream of cursors over the records in this object store.
The stream must be manually advanced by calling Cursor.next
after each item or by specifying autoAdvance to be true.
var cursors = objectStore.openCursor().listen( (cursor) { // ...some processing with the cursor cursor.next(); // advance onto the next cursor. }, onDone: () { // called when there are no more cursors. print('all done!'); });Asynchronous operations which are not related to the current transaction will cause the transaction to automatically be committed-- all processing must be done synchronously unless they are additional async requests to the current transaction.
Provides a Future which will be completed once the transaction has completed.
The future will error if an error occurrs on the transaction or if the transaction is aborted.