IDBObjectStore object

Holds the data stored in an indexed database.

DOM Information

Inheritance Hierarchy

The IDBObjectStore does not inherit from any class or interface.

Members

The IDBObjectStore object has these types of members:

Methods

The IDBObjectStore object has these methods.

MethodDescription
add

Adds a record object to an object store.

clear

Removes all data from an object store.

count

Returns the number of records in an object store corresponding to a key value or key range.

createIndex

Creates an index on an object store.

delete

Deletes a record object from an object store.

deleteIndex

Deletes an index from an object store.

get

Retrieves a record from an object store.

index

Retrieves an index associated with the object store.

openCursor

Returns a cursor object positioned at the first record object in a data source, optionally filtered by a key range and ordered by a direction.

put

Replaces or adds a record object in an object store.

 

Properties

The IDBObjectStore object has these properties.

PropertyAccess typeDescription

indexNames

Read-only

Returns the names of indexes associated with an object store.

keyPath

Read-only

Specifies the attribute that contains a unique value for the record in the object store.

name

Read-only

The name of an object store, index, or other database object.

 

Standards information

 

 

Show:
© 2014 Microsoft. All rights reserved.