IDBObjectStore class

The interface of the IndexedDB API represents an object store in a database. Records within an object store are sorted according to their keys. This sorting enables fast insertion, look-up, and ordered retrieval. Note: This feature is available in Web Workers

Available extensions
Annotations
  • @JS.new()
  • @staticInterop

Constructors

IDBObjectStore()
factory

Properties

autoIncrement → bool

Available on IDBObjectStore, provided by the PropsIDBObjectStore extension

no setter
hashCode → int
The hash code for this object.
no setterinherited
indexNames → DOMStringList

Available on IDBObjectStore, provided by the PropsIDBObjectStore extension

no setter
keyPath → dynamic

Available on IDBObjectStore, provided by the PropsIDBObjectStore extension

no setter
name ↔ String

Available on IDBObjectStore, provided by the PropsIDBObjectStore extension

getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
transaction → IDBTransaction

Available on IDBObjectStore, provided by the PropsIDBObjectStore extension

no setter

Methods

add(dynamic value, [dynamic key]) → IDBRequest

Available on IDBObjectStore, provided by the PropsIDBObjectStore extension

clear() → IDBRequest

Available on IDBObjectStore, provided by the PropsIDBObjectStore extension

count([dynamic query]) → IDBRequest

Available on IDBObjectStore, provided by the PropsIDBObjectStore extension

createIndex(String name, dynamic keyPath, [IDBIndexParameters? options]) → IDBIndex

Available on IDBObjectStore, provided by the PropsIDBObjectStore extension

delete(dynamic query) → IDBRequest

Available on IDBObjectStore, provided by the PropsIDBObjectStore extension

deleteIndex(String name) → void

Available on IDBObjectStore, provided by the PropsIDBObjectStore extension

get(dynamic query) → IDBRequest

Available on IDBObjectStore, provided by the PropsIDBObjectStore extension

getAll([dynamic query, int? count]) → IDBRequest

Available on IDBObjectStore, provided by the PropsIDBObjectStore extension

getAllKeys([dynamic query, int? count]) → IDBRequest

Available on IDBObjectStore, provided by the PropsIDBObjectStore extension

getKey(dynamic query) → IDBRequest

Available on IDBObjectStore, provided by the PropsIDBObjectStore extension

index(String name) → IDBIndex

Available on IDBObjectStore, provided by the PropsIDBObjectStore extension

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
openCursor([dynamic query, IDBCursorDirection? direction = IDBCursorDirection.next]) → IDBRequest

Available on IDBObjectStore, provided by the PropsIDBObjectStore extension

openKeyCursor([dynamic query, IDBCursorDirection? direction = IDBCursorDirection.next]) → IDBRequest

Available on IDBObjectStore, provided by the PropsIDBObjectStore extension

put(dynamic value, [dynamic key]) → IDBRequest

Available on IDBObjectStore, provided by the PropsIDBObjectStore extension

toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited