# IndexedDB
_Auto generated documentation for WebKit inspector
* Commands
* [enable](#indexeddbenablecallback)
* [disable](#indexeddbdisablecallback)
* [requestDatabaseNames](#indexeddbrequestdatabasenamessecurityorigin-callback)
* [requestDatabase](#indexeddbrequestdatabasesecurityorigin-databasename-callback)
* [requestData](#indexeddbrequestdatasecurityorigin-databasename-objectstorename-indexname-skipcount-pagesize-keyrange-callback)
* [clearObjectStore](#indexeddbclearobjectstoresecurityorigin-databasename-objectstorename-callback)
* Types
* [DatabaseWithObjectStores](#class-databasewithobjectstores)
* [ObjectStore](#class-objectstore)
* [ObjectStoreIndex](#class-objectstoreindex)
* [Key](#class-key)
* [KeyRange](#class-keyrange)
* [DataEntry](#class-dataentry)
* [KeyPath](#class-keypath)
## Commands
### IndexedDB.enable(callback)
Enables events from backend.
### Parameters
_**callback ( function )**_
### Results
_**error ( error )**_
### IndexedDB.disable(callback)
Disables events from backend.
### Parameters
_**callback ( function )**_
### Results
_**error ( error )**_
### IndexedDB.requestDatabaseNames(securityOrigin, callback)
Requests database names for given security origin.
### Parameters
_**securityOrigin ( string )**_
> Security origin.
_**callback ( function )**_
### Results
_**error ( error )**_
_**databaseNames ( array )**_
> Database names for origin.
### IndexedDB.requestDatabase(securityOrigin, databaseName, callback)
Requests database with given name in given frame.
### Parameters
_**securityOrigin ( string )**_
> Security origin.
_**databaseName ( string )**_
> Database name.
_**callback ( function )**_
### Results
_**error ( error )**_
_**databaseWithObjectStores ( [DatabaseWithObjectStores](#class-databasewithobjectstores) )**_
> Database with an array of object stores.
### IndexedDB.requestData(securityOrigin, databaseName, objectStoreName, indexName, skipCount, pageSize, [[KeyRange](#class-keyrange)], callback)
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 ( optional [KeyRange](#class-keyrange) )**_
> Key range.
_**callback ( function )**_
### Results
_**error ( error )**_
_**objectStoreDataEntries ( array of [DataEntry](#class-dataentry) )**_
> Array of object store data entries.
_**hasMore ( boolean )**_
> If true, there are more entries to fetch in the given range.
### IndexedDB.clearObjectStore(securityOrigin, databaseName, objectStoreName, callback)
Clears all entries from an object store.
### Parameters
_**securityOrigin ( string )**_
> Security origin.
_**databaseName ( string )**_
> Database name.
_**objectStoreName ( string )**_
> Object store name.
_**callback ( function )**_
### Results
_**error ( error )**_
## Types
### Class: DatabaseWithObjectStores
_Type: object_
Database with an array of object stores.
### Properties
_**name ( string )**_
> Database name.
_**version ( number )**_
> Database version.
_**objectStores ( array of [ObjectStore](#class-objectstore) )**_
> Object stores in this database.
### Class: ObjectStore
_Type: object_
Object store.
### Properties
_**name ( string )**_
> Object store name.
_**keyPath ( [KeyPath](#class-keypath) )**_
> Object store key path.
_**autoIncrement ( boolean )**_
> If true, object store has auto increment flag set.
_**indexes ( array of [ObjectStoreIndex](#class-objectstoreindex) )**_
> Indexes in this object store.
### Class: ObjectStoreIndex
_Type: object_
Object store index.
### Properties
_**name ( string )**_
> Index name.
_**keyPath ( [KeyPath](#class-keypath) )**_
> Index key path.
_**unique ( boolean )**_
> If true, index is unique.
_**multiEntry ( boolean )**_
> If true, index allows multiple entries for a key.
### Class: Key
_Type: object_
Key.
### Properties
_**type ( string enumerated ["number","string","date","array"] )**_
> Key type.
_**number ( optional number )**_
> Number value.
_**string ( optional string )**_
> String value.
_**date ( optional number )**_
> Date value.
_**array ( optional array of [Key](#class-key) )**_
> Array value.
### Class: KeyRange
_Type: object_
Key range.
### Properties
_**lower ( optional [Key](#class-key) )**_
> Lower bound.
_**upper ( optional [Key](#class-key) )**_
> Upper bound.
_**lowerOpen ( boolean )**_
> If true lower bound is open.
_**upperOpen ( boolean )**_
> If true upper bound is open.
### Class: DataEntry
_Type: object_
Data entry.
### Properties
_**key ( [Runtime.RemoteObject](Runtime.md#class-remoteobject) )**_
> Key.
_**primaryKey ( [Runtime.RemoteObject](Runtime.md#class-remoteobject) )**_
> Primary key.
_**value ( [Runtime.RemoteObject](Runtime.md#class-remoteobject) )**_
> Value.
### Class: KeyPath
_Type: object_
Key path.
### Properties
_**type ( string enumerated ["null","string","array"] )**_
> Key path type.
_**string ( optional string )**_
> String value.
_**array ( optional array )**_
> Array value.