IDBObjectStore
Generated from idl/indexeddb.webidl when the site was built at 7aa23e2.
IDBObjectStore is an interface in idl/indexeddb.webidl, exposed in Window, Worker. What it does is on MDN; this page says what niso has of it.
Status
Section titled “Status”The web features its members belong to, each with its Baseline status on the web and how much of the feature’s WPT suite passes in niso (see Web platform support).
| Feature | On the web | In niso | Members |
|---|---|---|---|
| IndexedDB | Widely available | Partial 95% 2929 of 3061 subtests pass | 20 |
| IndexedDB getAllRecords() | Limited availability | Full 108 of 108 subtests pass | 1 |
Members
Section titled “Members”attribute DOMString name;int32_t niso_idb_object_store_get_name(niso_dom* dom, niso_handle self, niso_str* out);int32_t niso_idb_object_store_set_name(niso_dom* dom, niso_handle self, const char* value, size_t value_len);keyPath
Section titled “keyPath”[SameObject] readonly attribute any keyPath;int32_t niso_idb_object_store_get_key_path(niso_dom* dom, niso_handle self, niso_bytes* out);[SameObject]: the standard returns the same Array each time.
indexNames
Section titled “indexNames”readonly attribute DOMStringList indexNames;int32_t niso_idb_object_store_get_index_names(niso_dom* dom, niso_handle self, niso_handle* out);transaction
Section titled “transaction”[SameObject] readonly attribute IDBTransaction transaction;int32_t niso_idb_object_store_get_transaction(niso_dom* dom, niso_handle self, niso_handle* out);autoIncrement
Section titled “autoIncrement”readonly attribute boolean autoIncrement;int32_t niso_idb_object_store_get_auto_increment(niso_dom* dom, niso_handle self, bool* out);[NisoGlue, NewObject] IDBRequest put(any value, optional any key);[NisoGlue, NewObject] IDBRequest add(any value, optional any key);delete()
Section titled “delete()”[NisoGlue, NewObject] IDBRequest delete(any query);clear()
Section titled “clear()”[NewObject] IDBRequest clear();int32_t niso_idb_object_store_clear(niso_dom* dom, niso_handle self, niso_handle* out);[NisoGlue, NewObject] IDBRequest get(any query);getKey()
Section titled “getKey()”[NisoGlue, NewObject] IDBRequest getKey(any query);getAll()
Section titled “getAll()”[NisoGlue, NewObject] IDBRequest getAll(optional any queryOrOptions, optional [EnforceRange] unsigned long count);getAllKeys()
Section titled “getAllKeys()”[NisoGlue, NewObject] IDBRequest getAllKeys(optional any queryOrOptions, optional [EnforceRange] unsigned long count);getAllRecords()
Section titled “getAllRecords()”[NisoGlue, NewObject] IDBRequest getAllRecords(optional IDBGetAllOptions options = {});count()
Section titled “count()”[NisoGlue, NewObject] IDBRequest count(optional any query);openCursor()
Section titled “openCursor()”[NisoGlue, NewObject] IDBRequest openCursor(optional any query, optional IDBCursorDirection direction = "next");openKeyCursor()
Section titled “openKeyCursor()”[NisoGlue, NewObject] IDBRequest openKeyCursor(optional any query, optional IDBCursorDirection direction = "next");index()
Section titled “index()”IDBIndex index(DOMString name);int32_t niso_idb_object_store_index(niso_dom* dom, niso_handle self, const char* name, size_t name_len, niso_handle* out);createIndex()
Section titled “createIndex()”[NisoGlue, NewObject] IDBIndex createIndex(DOMString name, (DOMString or sequence<DOMString>) keyPath, optional IDBIndexParameters options = {});deleteIndex()
Section titled “deleteIndex()”undefined deleteIndex(DOMString name);int32_t niso_idb_object_store_delete_index(niso_dom* dom, niso_handle self, const char* name, size_t name_len);check()
Section titled “check()”[NisoInternal] undefined check(boolean write);int32_t niso_idb_object_store_check(niso_dom* dom, niso_handle self, bool write);The checks of the steps that read (write false) or write (true): the object store is not deleted, the transaction is active, and it is not read-only when writing.
checkPut()
Section titled “checkPut()”[NisoInternal] undefined checkPut(boolean keyGiven);int32_t niso_idb_object_store_check_put(niso_dom* dom, niso_handle self, bool key_given);add and put’s checks before the key is converted.
putRecord()
Section titled “putRecord()”[NisoInternal] IDBRequest putRecord(any value, any key, boolean noOverwrite);int32_t niso_idb_object_store_put_record(niso_dom* dom, niso_handle self, const uint8_t* value, size_t value_len, const uint8_t* key, size_t key_len, bool no_overwrite, niso_handle* out);add and put’s steps after the value is cloned; key is undefined when not given.
query()
Section titled “query()”[NisoInternal] IDBRequest query(unsigned short operation, any range, unsigned long count, unsigned short direction);int32_t niso_idb_object_store_query(niso_dom* dom, niso_handle self, uint16_t operation, const uint8_t* range, size_t range_len, uint32_t count, uint16_t direction, niso_handle* out);A request that reads or deletes records: operation is get (0), getKey (1), getAll (2), getAllKeys (3), getAllRecords (4), count (5), delete (6), openCursor (7) or openKeyCursor (8); direction is the IDBCursorDirection’s index, and a count of 0 is no limit.
makeIndex()
Section titled “makeIndex()”[NisoInternal] IDBIndex makeIndex(DOMString name, any keyPath, boolean unique, boolean multiEntry);int32_t niso_idb_object_store_make_index(niso_dom* dom, niso_handle self, const char* name, size_t name_len, const uint8_t* key_path, size_t key_path_len, bool unique, bool multi_entry, niso_handle* out);createIndex’s steps after its arguments are converted.
Not in niso yet
Section titled “Not in niso yet”Members the web has, by the BCD keys web-features 3.45.0 lists, that idl/ doesn’t declare. The list is partial: web-features lists only the keys it maps to a feature.
worker_support(IndexedDB)