3 "featureGuard": "ENABLE(INDEXED_DATABASE)",
7 "id": "DatabaseWithObjectStores",
9 "description": "Database with an array of object stores.",
11 { "name": "name", "type": "string", "description": "Database name." },
12 { "name": "version", "type": "number", "description": "Database version." },
13 { "name": "objectStores", "type": "array", "items": { "$ref": "ObjectStore" }, "description": "Object stores in this database." }
19 "description": "Object store.",
21 { "name": "name", "type": "string", "description": "Object store name." },
22 { "name": "keyPath", "$ref": "KeyPath", "description": "Object store key path." },
23 { "name": "autoIncrement", "type": "boolean", "description": "If true, object store has auto increment flag set." },
24 { "name": "indexes", "type": "array", "items": { "$ref": "ObjectStoreIndex" }, "description": "Indexes in this object store." }
28 "id": "ObjectStoreIndex",
30 "description": "Object store index.",
32 { "name": "name", "type": "string", "description": "Index name." },
33 { "name": "keyPath", "$ref": "KeyPath", "description": "Index key path." },
34 { "name": "unique", "type": "boolean", "description": "If true, index is unique." },
35 { "name": "multiEntry", "type": "boolean", "description": "If true, index allows multiple entries for a key." }
41 "description": "Key.",
43 { "name": "type", "type": "string", "enum": ["number", "string", "date", "array"], "description": "Key type." },
44 { "name": "number", "type": "number", "optional": true, "description": "Number value." },
45 { "name": "string", "type": "string", "optional": true, "description": "String value." },
46 { "name": "date", "type": "number", "optional": true, "description": "Date value." },
47 { "name": "array", "type": "array", "optional": true, "items": { "$ref": "Key" }, "description": "Array value." }
53 "description": "Key range.",
55 { "name": "lower", "$ref": "Key", "optional": true, "description": "Lower bound." },
56 { "name": "upper", "$ref": "Key", "optional": true, "description": "Upper bound." },
57 { "name": "lowerOpen", "type": "boolean", "description": "If true lower bound is open." },
58 { "name": "upperOpen", "type": "boolean", "description": "If true upper bound is open." }
64 "description": "Data entry.",
66 { "name": "key", "$ref": "Runtime.RemoteObject", "description": "Key." },
67 { "name": "primaryKey", "$ref": "Runtime.RemoteObject", "description": "Primary key." },
68 { "name": "value", "$ref": "Runtime.RemoteObject", "description": "Value." }
74 "description": "Key path.",
76 { "name": "type", "type": "string", "enum": ["null", "string", "array"], "description": "Key path type." },
77 { "name": "string", "type": "string", "optional": true, "description": "String value." },
78 { "name": "array", "type": "array", "optional": true, "items": { "type": "string" }, "description": "Array value." }
85 "description": "Enables events from backend."
89 "description": "Disables events from backend."
92 "name": "requestDatabaseNames",
95 { "name": "securityOrigin", "type": "string", "description": "Security origin." }
98 { "name": "databaseNames", "type": "array", "items": { "type": "string" }, "description": "Database names for origin." }
100 "description": "Requests database names for given security origin."
103 "name": "requestDatabase",
106 { "name": "securityOrigin", "type": "string", "description": "Security origin." },
107 { "name": "databaseName", "type": "string", "description": "Database name." }
110 { "name": "databaseWithObjectStores", "$ref": "DatabaseWithObjectStores", "description": "Database with an array of object stores." }
112 "description": "Requests database with given name in given frame."
115 "name": "requestData",
118 { "name": "securityOrigin", "type": "string", "description": "Security origin." },
119 { "name": "databaseName", "type": "string", "description": "Database name." },
120 { "name": "objectStoreName", "type": "string", "description": "Object store name." },
121 { "name": "indexName", "type": "string", "description": "Index name, empty string for object store data requests." },
122 { "name": "skipCount", "type": "integer", "description": "Number of records to skip." },
123 { "name": "pageSize", "type": "integer", "description": "Number of records to fetch." },
124 { "name": "keyRange", "$ref": "KeyRange", "optional": true, "description": "Key range." }
127 { "name": "objectStoreDataEntries", "type": "array", "items": { "$ref": "DataEntry" }, "description": "Array of object store data entries." },
128 { "name": "hasMore", "type": "boolean", "description": "If true, there are more entries to fetch in the given range." }
130 "description": "Requests data from object store or index."
133 "name": "clearObjectStore",
136 { "name": "securityOrigin", "type": "string", "description": "Security origin." },
137 { "name": "databaseName", "type": "string", "description": "Database name." },
138 { "name": "objectStoreName", "type": "string", "description": "Object store name." }
142 "description": "Clears all entries from an object store."