Liking cljdoc? Tell your friends :D

idb.IDBFactory

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

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

cmpcljs

(cmp this first second)

Method.

An integer that indicates the result of the comparison; the table lists the possible values and their meanings:

var result = indexedDB.cmp(first, second);

See also: https://developer.mozilla.org/en-US/docs/Web/API/IDBFactory/cmp

Method.

An integer that indicates the result of the comparison; the table
lists the possible values and their meanings:

`var result = indexedDB.cmp(first, second);`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/IDBFactory/cmp`
sourceraw docstring

databasescljs

(databases this)

Method.

The databases method of the idb.IDBFactory interface returns list represening all the available databases, including their and versions.

const promise = indexedDB.databases()

See also: https://developer.mozilla.org/en-US/docs/Web/API/IDBFactory/databases

Method.

The databases method of the `idb.IDBFactory` interface returns
list represening all the available databases, including their
and versions.

`const promise = indexedDB.databases()`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/IDBFactory/databases`
sourceraw docstring

delete-databasecljs

(delete-database this & args)

Method.

The deleteDatabase() method of the idb.IDBFactory interface the deletion of a database. The method returns an idb.IDBOpenDBRequest immediately, and performs the deletion operation asynchronously.

`For the current standard:

var request = indexedDB.deleteDatabase(name);

For the experimental version with options (see below):

var request = indexedDB.deleteDatabase(name, options);`

See also: https://developer.mozilla.org/en-US/docs/Web/API/IDBFactory/deleteDatabase

Method.

The deleteDatabase() method of the `idb.IDBFactory` interface
the deletion of a database. The method returns an `idb.IDBOpenDBRequest`
immediately, and performs the deletion operation asynchronously.

`For the current standard:



var request = indexedDB.deleteDatabase(name);

For the experimental version with options (see below):



var request = indexedDB.deleteDatabase(name, options);`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/IDBFactory/deleteDatabase`
sourceraw docstring

opencljs

(open this & args)

Method.

If an error occurs while the database connection is being opened, an error event is fired on the request object returned from this

`For the current standard:

var IDBOpenDBRequest = indexedDB.open(name); var IDBOpenDBRequest = indexedDB.open(name, version);`

See also: https://developer.mozilla.org/en-US/docs/Web/API/IDBFactory/open

Method.

If an error occurs while the database connection is being opened,
an error event is fired on the request object returned from this

`For the current standard:



var IDBOpenDBRequest = indexedDB.open(name);
var IDBOpenDBRequest = indexedDB.open(name, version);`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/IDBFactory/open`
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close