IDBStoreLike
Common members shared between IDBObjectStore and IDBIndex.
- Type parameters:
- S
The type of
.source
Value members
Concrete methods
Returns an IDBRequest object, and, in a separate thread, returns the object store selected by the specified key. This is for retrieving specific records from an object store.
Returns an IDBRequest object, and, in a separate thread, returns the object store selected by the specified key. This is for retrieving specific records from an object store.
Note: This method produces the same result for: a) a record that doesn't exist in the database and b) a record that has an undefined value. To tell these situations apart, call the openCursor method with the same key. That method provides a cursor if the record exists, and no cursor if it does not.
Returns an IDBRequest object containing all objects in the object store matching the specified parameter or all objects in the store if no parameters are given.
Returns an IDBRequest object containing all objects in the object store matching the specified parameter or all objects in the store if no parameters are given.
If a value is successfully found, then a structured clone of it is created and set as the result of the request object.
This method produces the same result for:
- a record that doesn't exist in the database
- a record that has an undefined value
To tell these situations apart, you either call
- the openCursor method with the same key. That method provides a cursor if the record exists, and no cursor if it does not.
- the count method with the same key, which will return 1 if the row exists and 0 if it doesn't.
Returns an IDBRequest object retrieves record keys for all objects in the object store matching the specified parameter or all objects in the store if no parameters are given.
Returns an IDBRequest object retrieves record keys for all objects in the object store matching the specified parameter or all objects in the store if no parameters are given.
If a value is successfully found, then a structured clone of it is created and set as the result of the request object.
This method produces the same result for:
- a record that doesn't exist in the database
- a record that has an undefined value
To tell these situations apart, you need to call the openCursor method with the same key. That method provides a cursor if the record exists, and no cursor if it does not.
Returns an IDBRequest object, and, in a separate thread, returns the key selected by the specified query. This is for retrieving specific records from an object store.
Returns an IDBRequest object, and, in a separate thread, returns the key selected by the specified query. This is for retrieving specific records from an object store.
The key path of this object store. If this attribute is null, the application must provide a key for each modification operation.
The key path of this object store. If this attribute is null, the application must provide a key for each modification operation.
The method sets the position of the cursor to the appropriate record, based on the specified direction.
The method sets the position of the cursor to the appropriate record, based on the specified direction.
- Returns:
IDBRequest with the
target
value being a new cursor ornull
.
The method sets the position of the cursor to the appropriate key, based on the specified direction.
The method sets the position of the cursor to the appropriate key, based on the specified direction.
- Returns:
IDBRequest with the
target
value being a new cursor ornull
.