class IDBObjectStore extends Object
The IDBObjectStore 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.
MDN
- Annotations
- @JSType() @native() @JSGlobal()
- Alphabetic
- By Inheritance
- IDBObjectStore
- Object
- Any
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new IDBObjectStore()
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
add(value: Any, key: Any = js.native): IDBRequest
To determine if the add operation has completed successfully, listen for the transaction’s complete event in addition to the IDBObjectStore.add request’s success event, because the transaction may still fail after the success event fires.
To determine if the add operation has completed successfully, listen for the transaction’s complete event in addition to the IDBObjectStore.add request’s success event, because the transaction may still fail after the success event fires. In other words, the success event is only triggered when the transaction has been successfully queued.
MDN
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clear(): IDBRequest
Clearing an object store consists of removing all records from the object store and removing all records in indexes that reference the object store.
Clearing an object store consists of removing all records from the object store and removing all records in indexes that reference the object store.
MDN
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
- def count(key: Any = js.native): IDBRequest
-
def
createIndex(name: String, keyPath: String, optionalParameters: Any = js.native): IDBIndex
Note that this method must be called only from a VersionChange transaction mode callback.
Note that this method must be called only from a VersionChange transaction mode callback.
MDN
-
def
delete(key: Any): IDBRequest
returns an IDBRequest object, and, in a separate thread, deletes the current object store.
returns an IDBRequest object, and, in a separate thread, deletes the current object store.
MDN
-
def
deleteIndex(indexName: String): Unit
Note that this method must be called only from a VersionChange transaction mode callback.
Note that this method must be called only from a VersionChange transaction mode callback. Note that this method synchronously modifies the IDBObjectStore.indexNames property.
MDN
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
get(key: Any): IDBRequest
If a value is successfully found, then a structured clone of it is created and set as the result of the request object.
If a value is successfully found, then a structured clone of it is created and set as the result of the request object.
MDN
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hasOwnProperty(v: String): Boolean
- Definition Classes
- Object
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
index(name: String): IDBIndex
This method may raise a DOMException of one of the following types:
This method may raise a DOMException of one of the following types:
MDN
-
def
indexNames: DOMStringList
A list of the names of indexes on objects in this object store.
A list of the names of indexes on objects in this object store.
MDN
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
isPrototypeOf(v: Object): Boolean
- Definition Classes
- Object
-
def
keyPath: String
The key path of this object store.
The key path of this object store. If this attribute is null, the application must provide a key for each modification operation.
MDN
- def name: String
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def openCursor(range: Any = js.native, direction: String = js.native): IDBRequest
-
def
propertyIsEnumerable(v: String): Boolean
- Definition Classes
- Object
-
def
put(value: Any, key: Any = js.native): IDBRequest
If the record is successfully stored, then a success event is fired on the returned request object with the result set to the key for the stored record, and the transaction set to the transaction in which this object store is opened.
If the record is successfully stored, then a success event is fired on the returned request object with the result set to the key for the stored record, and the transaction set to the transaction in which this object store is opened.
MDN
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toLocaleString(): String
- Definition Classes
- Object
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
def
transaction: IDBTransaction
The name of the transaction to which this object store belongs.
The name of the transaction to which this object store belongs.
MDN
-
def
valueOf(): Any
- Definition Classes
- Object
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()