IDBDatabase class
This IndexedDB API interface provides a connection to a database; you can use an IDBDatabase object to open a transaction on your database then create, manipulate, and delete objects (data) in that database. The interface provides the only way to get and manage versions of the database.
- Implemented types
- Available extensions
- Annotations
-
- @JS()
- @staticInterop
Constructors
- IDBDatabase()
-
factory
Properties
- addEventListener ↔ void Function(String, [Object?, Object?])
-
Available on EventTarget, provided by the EventTarget$Typings extension
getter/setter pair -
addEventListener
→ ({void Function<
K$>(IDBDatabaseEventMap< $1, void Function(String type, Object listener, [Object? options]) $2})K$> type, dynamic listener(K$), [Object? options]) -
Available on IDBDatabase, provided by the IDBDatabase$Typings extension
Overload accessor: $1, $2no setter - close ↔ void Function()
-
Available on IDBDatabase, provided by the IDBDatabase$Typings extension
getter/setter pair - createObjectStore ↔ IDBObjectStore Function(String, [IDBObjectStoreParameters?])
-
Available on IDBDatabase, provided by the IDBDatabase$Typings extension
getter/setter pair - deleteObjectStore ↔ void Function(String)
-
Available on IDBDatabase, provided by the IDBDatabase$Typings extension
getter/setter pair - dispatchEvent ↔ bool Function(Event)
-
Available on EventTarget, provided by the EventTarget$Typings extension
getter/setter pair - hashCode → int
-
The hash code for this object.
no setterinherited
- name → String
-
Available on IDBDatabase, provided by the IDBDatabase$Typings extension
Returns the name of the database.no setter - objectStoreNames → DOMStringList
-
Available on IDBDatabase, provided by the IDBDatabase$Typings extension
Returns a list of the names of object stores in the database.no setter - onabort ↔ dynamic Function(Event)?
-
Available on IDBDatabase, provided by the IDBDatabase$Typings extension
getter/setter pair - onclose ↔ dynamic Function(Event)?
-
Available on IDBDatabase, provided by the IDBDatabase$Typings extension
MDN Referencegetter/setter pair - onerror ↔ dynamic Function(Event)?
-
Available on IDBDatabase, provided by the IDBDatabase$Typings extension
getter/setter pair - onversionchange ↔ dynamic Function(IDBVersionChangeEvent)?
-
Available on IDBDatabase, provided by the IDBDatabase$Typings extension
MDN Referencegetter/setter pair - removeEventListener ↔ void Function(String, [Object?, Object?])
-
Available on EventTarget, provided by the EventTarget$Typings extension
getter/setter pair -
removeEventListener
→ ({void Function<
K$>(IDBDatabaseEventMap< $1, void Function(String type, Object listener, [Object? options]) $2})K$> type, dynamic listener(K$), [Object? options]) -
Available on IDBDatabase, provided by the IDBDatabase$Typings extension
Overload accessor: $1, $2no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- transaction → ({IDBTransaction Function(Object storeNames, [IDBTransactionMode? mode, IDBTransactionOptions? options]) $1, IDBTransaction Function(Object storeNames, [IDBTransactionMode? mode, IDBTransactionOptions? options]) $2})
-
Available on IDBDatabase, provided by the IDBDatabase$Typings extension
Overload accessor: $1, $2no setter - version → num
-
Available on IDBDatabase, provided by the IDBDatabase$Typings extension
Returns the version of the database.no setter
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited