class
Database

An indexed database object for storing client-side data in web apps.

Annotations
  • DocsEditable()
  • DomName('IDBDatabase')
  • SupportedBrowser(SupportedBrowser.CHROME)
  • SupportedBrowser(SupportedBrowser.FIREFOX, '15')
  • SupportedBrowser(SupportedBrowser.IE, '10')
  • Experimental()
  • Unstable()
Extends

Constants

EventStreamProvider<Event> abortEvent = const EventStreamProvider<Event>('abort')
const
Static factory designed to expose abort events to event handlers that are not necessarily instances of Database.
EventStreamProvider<Event> closeEvent = const EventStreamProvider<Event>('close')
const
Static factory designed to expose close events to event handlers that are not necessarily instances of Database.
EventStreamProvider<Event> errorEvent = const EventStreamProvider<Event>('error')
const
Static factory designed to expose error events to event handlers that are not necessarily instances of Database.
EventStreamProvider<VersionChangeEvent> versionChangeEvent = const EventStreamProvider<VersionChangeEvent>('versionchange')
const
Static factory designed to expose versionchange events to event handlers that are not necessarily instances of Database.

Properties

String name
read-only
List<String> objectStoreNames
read-only
Object version
read-only
Stream<Event> onAbort
read-only
Stream of abort events handled by this [Database].
Stream<Event> onClose
read-only
Stream of close events handled by this [Database].
Stream<Event> onError
read-only
Stream of error events handled by this [Database].
Stream<VersionChangeEvent> onVersionChange
read-only
Stream of versionchange events handled by this [Database].
Events on
read-only , inherited
This is an ease-of-use accessor for event streams which should only be used when an explicit accessor is not available.

Methods

createObjectStore(String name, {String keyPath, bool autoIncrement}) → ObjectStore
close() → void
deleteObjectStore(String name) → void
transaction(storeName_OR_storeNames, [String mode]) → Transaction
transactionList(List<String> storeNames, [String mode]) → Transaction
transactionStore(String storeName, [String mode]) → Transaction
transactionStores(List<String> storeNames, [String mode]) → Transaction
addEventListener(String type, dynamic listener(Event event), [bool useCapture]) → void
inherited
removeEventListener(String type, dynamic listener(Event event), [bool useCapture]) → void
inherited
dispatchEvent(Event event) → bool
inherited