Liking cljdoc? Tell your friends :D

idb.IDBTransaction

Note that as of Firefox 40, IndexedDB transactions have relaxed guarantees to increase performance (see bug 1112702.) Previously a readwrite transaction idb.IDBTransaction.oncomplete was fired when all data was guaranteed to have been flushed to disk. In 40+ the complete event is fired after the OS has been told to the data but potentially before that data has actually been flushed disk. The complete event may thus be delivered quicker than before, there exists a small chance that the entire transaction will lost if the OS crashes or there is a loss of system power before data is flushed to disk. Since such catastrophic events are rare consumers should not need to concern themselves further.

Note that as of Firefox 40, IndexedDB transactions have relaxed
guarantees to increase performance (see bug 1112702.) Previously
a readwrite transaction `idb.IDBTransaction.oncomplete` was fired
when all data was guaranteed to have been flushed to disk. In
40+ the complete event is fired after the OS has been told to
the data but potentially before that data has actually been flushed
disk. The complete event may thus be delivered quicker than before,
there exists a small chance that the entire transaction will
lost if the OS crashes or there is a loss of system power before
data is flushed to disk. Since such catastrophic events are rare
consumers should not need to concern themselves further.
raw docstring

abortcljs

(abort this)

Method.

The abort() method of the idb.IDBTransaction interface rolls all the changes to objects in the database associated with this

transaction.abort();

See also: https://developer.mozilla.org/en-US/docs/Web/API/IDBTransaction/abort

Method.

The abort() method of the `idb.IDBTransaction` interface rolls
all the changes to objects in the database associated with this

`transaction.abort();`

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

commitcljs

(commit this)

Method.

The commit() method of the idb.IDBTransaction interface commits transaction if it is alled on an active transaction. If it is on a transaction that is not active, it throws and web.InvalidStateError

transaction.commit();

See also: https://developer.mozilla.org/en-US/docs/Web/API/IDBTransaction/commit

Method.

The commit() method of the `idb.IDBTransaction` interface commits
transaction if it is alled on an active transaction. If it is
on a transaction that is not active, it throws and `web.InvalidStateError`

`transaction.commit();`

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

dbcljs

(db this)

Property.

An idb.IDBDatabase object.

var myDatabase = transaction.db;

See also: https://developer.mozilla.org/en-US/docs/Web/API/IDBTransaction/db

Property.

An `idb.IDBDatabase` object.

`var myDatabase = transaction.db;`

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

errorcljs

(error this)

Property.

A dom.DOMError containing the relevant error. In Chrome 48+/Firefox this property returns a dom.DOMException because DOMError has removed from the DOM standard. The exact error is one of serveral It can be a reference to the same error as the request object raised it, or a transaction failure (for example web.QuotaExceededError web.UnknownError).

var myError = transaction.error;

See also: https://developer.mozilla.org/en-US/docs/Web/API/IDBTransaction/error

Property.

A `dom.DOMError` containing the relevant error. In Chrome 48+/Firefox
this property returns a `dom.DOMException` because DOMError has
removed from the DOM standard. The exact error is one of serveral
It can be a reference to the same error as the request object
raised it, or a transaction failure (for example `web.QuotaExceededError`
`web.UnknownError`).

`var myError = transaction.error;`

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

modecljs

(mode this)

Property.

An idb.IDBTransactionMode object defining the mode for isolating to data in the current object stores:

var myCurrentMode = IDBTransaction.mode;

See also: https://developer.mozilla.org/en-US/docs/Web/API/IDBTransaction/mode

Property.

An `idb.IDBTransactionMode` object defining the mode for isolating
to data in the current object stores:

`var myCurrentMode = IDBTransaction.mode;`

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

object-storecljs

(object-store this name)

Method.

The objectStore() method of the idb.IDBTransaction interface an object store that has already been added to the scope of this

IDBTransaction.objectStore(name);

See also: https://developer.mozilla.org/en-US/docs/Web/API/IDBTransaction/objectStore

Method.

The objectStore() method of the `idb.IDBTransaction` interface
an object store that has already been added to the scope of this

`IDBTransaction.objectStore(name);`

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

object-store-namescljs

(object-store-names this)

Property.

The objectStoreNames read-only property of the idb.IDBTransaction returns a dom.DOMStringList of names of idb.IDBObjectStore

var myDatabase = transactionObj.objectStoreNames;

See also: https://developer.mozilla.org/en-US/docs/Web/API/IDBTransaction/ObjectStoreNames

Property.

The objectStoreNames read-only property of the `idb.IDBTransaction`
returns a `dom.DOMStringList` of names of `idb.IDBObjectStore`

`var myDatabase = transactionObj.objectStoreNames;`

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

onabortcljs

(onabort this)

Property.

In the following code snippet, we open a read/write transaction our database and add some data to an object store. Note also functions attached to transaction event handlers to report on outcome of the transaction opening in the event of success or Note the transaction.onabort = function(event) { }; block, reporting the transaction has been aborted. For a full working example, our To-do Notifications app (view example live.)

transaction.onabort = function(event) { ... };

See also: https://developer.mozilla.org/en-US/docs/Web/API/IDBTransaction/onabort

Property.

In the following code snippet, we open a read/write transaction
our database and add some data to an object store. Note also
functions attached to transaction event handlers to report on
outcome of the transaction opening in the event of success or
Note the transaction.onabort = function(event) { }; block, reporting
the transaction has been aborted. For a full working example,
our To-do Notifications app (view example live.)

`transaction.onabort = function(event) { ... };`

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

oncompletecljs

(oncomplete this)

Property.

The oncomplete event handler of the idb.IDBTransaction interface the complete event, fired when the transaction successfully completes.

transaction.oncomplete = function(event) { ... };

See also: https://developer.mozilla.org/en-US/docs/Web/API/IDBTransaction/oncomplete

Property.

The oncomplete event handler of the `idb.IDBTransaction` interface
the complete event, fired when the transaction successfully completes.

`transaction.oncomplete = function(event) { ... };`

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

onerrorcljs

(onerror this)

Property.

The onerror event handler of the idb.IDBTransaction interface the error event, fired when a request returns an error and bubbles to the transaction object.

transaction.onerror = function(event) { ... };

See also: https://developer.mozilla.org/en-US/docs/Web/API/IDBTransaction/onerror

Property.

The onerror event handler of the `idb.IDBTransaction` interface
the error event, fired when a request returns an error and bubbles
to the transaction object.

`transaction.onerror = function(event) { ... };`

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

set-db!cljs

(set-db! this val)

Property.

An idb.IDBDatabase object.

var myDatabase = transaction.db;

See also: https://developer.mozilla.org/en-US/docs/Web/API/IDBTransaction/db

Property.

An `idb.IDBDatabase` object.

`var myDatabase = transaction.db;`

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

set-error!cljs

(set-error! this val)

Property.

A dom.DOMError containing the relevant error. In Chrome 48+/Firefox this property returns a dom.DOMException because DOMError has removed from the DOM standard. The exact error is one of serveral It can be a reference to the same error as the request object raised it, or a transaction failure (for example web.QuotaExceededError web.UnknownError).

var myError = transaction.error;

See also: https://developer.mozilla.org/en-US/docs/Web/API/IDBTransaction/error

Property.

A `dom.DOMError` containing the relevant error. In Chrome 48+/Firefox
this property returns a `dom.DOMException` because DOMError has
removed from the DOM standard. The exact error is one of serveral
It can be a reference to the same error as the request object
raised it, or a transaction failure (for example `web.QuotaExceededError`
`web.UnknownError`).

`var myError = transaction.error;`

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

set-mode!cljs

(set-mode! this val)

Property.

An idb.IDBTransactionMode object defining the mode for isolating to data in the current object stores:

var myCurrentMode = IDBTransaction.mode;

See also: https://developer.mozilla.org/en-US/docs/Web/API/IDBTransaction/mode

Property.

An `idb.IDBTransactionMode` object defining the mode for isolating
to data in the current object stores:

`var myCurrentMode = IDBTransaction.mode;`

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

set-object-store-names!cljs

(set-object-store-names! this val)

Property.

The objectStoreNames read-only property of the idb.IDBTransaction returns a dom.DOMStringList of names of idb.IDBObjectStore

var myDatabase = transactionObj.objectStoreNames;

See also: https://developer.mozilla.org/en-US/docs/Web/API/IDBTransaction/ObjectStoreNames

Property.

The objectStoreNames read-only property of the `idb.IDBTransaction`
returns a `dom.DOMStringList` of names of `idb.IDBObjectStore`

`var myDatabase = transactionObj.objectStoreNames;`

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

set-onabort!cljs

(set-onabort! this val)

Property.

In the following code snippet, we open a read/write transaction our database and add some data to an object store. Note also functions attached to transaction event handlers to report on outcome of the transaction opening in the event of success or Note the transaction.onabort = function(event) { }; block, reporting the transaction has been aborted. For a full working example, our To-do Notifications app (view example live.)

transaction.onabort = function(event) { ... };

See also: https://developer.mozilla.org/en-US/docs/Web/API/IDBTransaction/onabort

Property.

In the following code snippet, we open a read/write transaction
our database and add some data to an object store. Note also
functions attached to transaction event handlers to report on
outcome of the transaction opening in the event of success or
Note the transaction.onabort = function(event) { }; block, reporting
the transaction has been aborted. For a full working example,
our To-do Notifications app (view example live.)

`transaction.onabort = function(event) { ... };`

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

set-oncomplete!cljs

(set-oncomplete! this val)

Property.

The oncomplete event handler of the idb.IDBTransaction interface the complete event, fired when the transaction successfully completes.

transaction.oncomplete = function(event) { ... };

See also: https://developer.mozilla.org/en-US/docs/Web/API/IDBTransaction/oncomplete

Property.

The oncomplete event handler of the `idb.IDBTransaction` interface
the complete event, fired when the transaction successfully completes.

`transaction.oncomplete = function(event) { ... };`

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

set-onerror!cljs

(set-onerror! this val)

Property.

The onerror event handler of the idb.IDBTransaction interface the error event, fired when a request returns an error and bubbles to the transaction object.

transaction.onerror = function(event) { ... };

See also: https://developer.mozilla.org/en-US/docs/Web/API/IDBTransaction/onerror

Property.

The onerror event handler of the `idb.IDBTransaction` interface
the error event, fired when a request returns an error and bubbles
to the transaction object.

`transaction.onerror = function(event) { ... };`

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

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

× close