Factory

js.html.idb.Factory (extern class)

In the following code snippet, we make a request to open a database, and include handlers for the success and error cases. For a full working example, see our To-do Notifications app (view example live.)

Documentation IDBFactory by Mozilla Contributors, licensed under CC-BY-SA 2.5.

See:

Instance Members

open(name: String, ?options: Null<OpenDBOptions>): OpenDBRequest
Name Type Default
name String
options Null<OpenDBOptions> (optional)
Returns
OpenDBRequest

deleteDatabase(name: String, ?options: Null<OpenDBOptions>): OpenDBRequest
Name Type Default
name String
options Null<OpenDBOptions> (optional)
Returns
OpenDBRequest

cmp(first: Dynamic, second: Dynamic): Int
Name Type
first Dynamic
second Dynamic
Returns
Int