package js.html.idb
Available on jsThis example shows a variety of different uses of object stores, from updating the data structure with
IDBObjectStore.createIndexinside anonupgradeneededfunction, to adding a new item to our object store withIDBObjectStore.add. For a full working example, see our To-do Notifications app (view example live.)Documentation IDBObjectStore by Mozilla Contributors, licensed under CC-BY-SA 2.5.
See:
read only autoIncrement:BoolThe value of the auto increment flag for this object store.
read only indexNames:DOMStringListA list of the names of indexes on objects in this object store.
read only keyPath:DynamicThe key path of this object store. If this attribute is null, the application must provide a key for each modification operation.
read only name:StringThe name of this object store.
read only transaction:TransactionThe IDBTransaction object to which this object store belongs.
add (value:Dynamic, ?key:Dynamic):RequestThrows:
null |
DOMError |
|---|
clear ():RequestThrows:
null |
DOMError |
|---|
count (?key:Dynamic):RequestThrows:
null |
DOMError |
|---|
createIndex (name:String, keyPath:Array<String>, ?optionalParameters:IndexParameters):IndexcreateIndex (name:String, keyPath:String, ?optionalParameters:IndexParameters):IndexThrows:
null |
DOMError |
|---|
deleteIndex (indexName:String):VoidThrows:
null |
DOMError |
|---|
delete_ (key:Dynamic):RequestThrows:
null |
DOMError |
|---|
get (key:Dynamic):RequestThrows:
null |
DOMError |
|---|
getAll (?key:Dynamic, ?limit:Int):RequestThrows:
null |
DOMError |
|---|
getAllKeys (?key:Dynamic, ?limit:Int):RequestThrows:
null |
DOMError |
|---|
index (name:String):IndexThrows:
null |
DOMError |
|---|
openCursor (?range:Dynamic, direction:CursorDirection = "next"):RequestThrows:
null |
DOMError |
|---|
openKeyCursor (?range:Dynamic, direction:CursorDirection = "next"):RequestThrows:
null |
DOMError |
|---|
put (value:Dynamic, ?key:Dynamic):RequestThrows:
null |
DOMError |
|---|
© 2005–2018 Haxe Foundation
Licensed under a MIT license.
https://api.haxe.org/js/html/idb/ObjectStore.html