Domains Accessibility Animation ApplicationCache CSS CacheStorage Console DOM DOMDebugger DOMStorage Database Debugger DeviceOrientation Emulation FileSystem HeapProfiler IndexedDB Input Inspector LayerTree Memory Network Page Power Profiler Rendering Runtime ScreenOrientation Security ServiceWorker Timeline Tracing Worker
Chrome Debugger Protocol Viewer

IndexedDB Domain

Methods

enable

Enables events from backend.

disable

Disables events from backend.

requestDatabaseNames

Requests database names for given security origin.

Parameters
securityOrigin
string Security origin.
Return object
databaseNames
array [string] Database names for origin.

requestDatabase

Requests database with given name in given frame.

Parameters
securityOrigin
string Security origin.
databaseName
string Database name.
Return object
databaseWithObjectStores
DatabaseWithObjectStores Database with an array of object stores.

requestData

Requests data from object store or index.

Parameters
securityOrigin
string Security origin.
databaseName
string Database name.
objectStoreName
string Object store name.
indexName
string Index name, empty string for object store data requests.
skipCount
integer Number of records to skip.
pageSize
integer Number of records to fetch.
keyRange
KeyRange Key range.
Return object
objectStoreDataEntries
array [ DataEntry ] Array of object store data entries.
hasMore
boolean If true, there are more entries to fetch in the given range.

clearObjectStore

Clears all entries from an object store.

Parameters
securityOrigin
string Security origin.
databaseName
string Database name.
objectStoreName
string Object store name.

Types

DatabaseWithObjectStores

Database with an array of object stores.

Type: object

Properties
name
string Database name.
version
string Deprecated string database version.
intVersion
integer Integer database version.
objectStores
array [ ObjectStore ] Object stores in this database.

ObjectStore

Object store.

Type: object

Properties
name
string Object store name.
keyPath
KeyPath Object store key path.
autoIncrement
boolean If true, object store has auto increment flag set.
indexes
array [ ObjectStoreIndex ] Indexes in this object store.

ObjectStoreIndex

Object store index.

Type: object

Properties
name
string Index name.
keyPath
KeyPath Index key path.
unique
boolean If true, index is unique.
multiEntry
boolean If true, index allows multiple entries for a key.

Key

Key.

Type: object

Properties
type
string Key type. Allowed values: number, string, date, array.
number
number Number value.
string
string String value.
date
number Date value.
array
array [ Key ] Array value.

KeyRange

Key range.

Type: object

Properties
lower
Key Lower bound.
upper
Key Upper bound.
lowerOpen
boolean If true lower bound is open.
upperOpen
boolean If true upper bound is open.

DataEntry

Data entry.

Type: object

Properties
key
string JSON-stringified key object.
primaryKey
string JSON-stringified primary key object.
value
string JSON-stringified value object.

KeyPath

Key path.

Type: object

Properties
type
string Key path type. Allowed values: null, string, array.
string
string String value.
array
array [string] Array value.