package js.html.idb
extends EventTarget
Available on jsInherits from: EventTarget
Documentation IDBDatabase by Mozilla Contributors, licensed under CC-BY-SA 2.5.
See:
read only name:StringA DOMString that contains the name of the connected database.
read only objectStoreNames:DOMStringListA DOMStringList that contains a list of the names of the object stores currently in the connected database.
onabort:FunctionFires when access of the database is aborted.
onerror:FunctionFires when access to the database fails.
onversionchange:FunctionFires when a database structure change (IDBOpenDBRequest.onupgradeneeded event orIDBFactory.deleteDatabase() was requested elsewhere (most probably in another window/tab on the same computer). This is different from the version change transaction (see IDBVersionChangeEvent), but it is related.
read only version:IntA 64-bit integer that contains the version of the connected database. When a database is first created, this attribute is an empty string.
close ():VoidReturns immediately and closes the connection to a database in a separate thread.
createMutableFile (name:String, ?type:String):RequestThrows:
null |
DOMError |
|---|
createObjectStore (name:String, ?optionalParameters:ObjectStoreParameters):ObjectStoreThrows:
null |
DOMError |
|---|
deleteObjectStore (name:String):VoidThrows:
null |
DOMError |
|---|
transaction (storeNames:EitherType<String, Array<String>>, mode:TransactionMode = "readonly"):TransactionThrows:
null |
DOMError |
|---|
© 2005–2018 Haxe Foundation
Licensed under a MIT license.
https://api.haxe.org/js/html/idb/Database.html