Indexed Database Methods

This topic provides an alphabetical list of the methods supported by Indexed Database objects.

In this section

TopicDescription

abort

Cancels a transaction.

add

Adds a record object to an object store.

advance

Advances the position of a cursor forward by a specified number of records.

bound

Creates a bound key range.

clear

Removes all data from an object store.

close

Closes the connection to a database.

cmp

Compares two values and indicates whether one is greater than the other.

continue

Advances the position of cursor object to the next object.

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.

createObjectStore

Creates an object store.

delete

Deletes a record object from an object store.

deleteDatabase

Deletes a database.

deleteIndex

Deletes an index from an object store.

deleteObjectStore

Deletes an object store (and associated indexes) from the database.

get

Retrieves a record from an object store.

getKey

Retrieves the key value from an index.

index

Retrieves an index associated with the object store.

lowerBound

Creates a lower bound key range.

objectStore

Returns an object store that is part of the transaction.

only

Creates a single valued key range.

open

Opens a database object.

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.

openKeyCursor

Returns a set of records, organized by the index, optionally matching values specified by a key range and matching a specified direction.

put

Replaces or adds a record object in an object store.

setVersion

Obsolete. No longer supported.

transaction

Begins a transaction for the specified object stores.

update

Updates a value in the current record of the cursor.

upperBound

Creates an upper bound key range.

 

 

 

Show:
© 2014 Microsoft. All rights reserved.