Liking cljdoc? Tell your friends :D

web.storage.IDBTransaction

Note that as of Firefox 40, IndexedDB transactions have relaxed guarantees to increase performance (see bug 1112702.) Previously a readwrite transaction 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 `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 web.storage.IDBTransaction interface back all the changes to objects in the database associated with transaction.

transaction.abort();

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

Method.

The abort() method of the `web.storage.IDBTransaction` interface
back all the changes to objects in the database associated with
transaction.

`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 web.storage.IDBTransaction interface the transaction if it is alled on an active transaction. If it called on a transaction that is not active, it throws and InvalidStateError

transaction.commit();

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

Method.

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

`transaction.commit();`

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

dbcljs

(db this)

Property.

[Read Only]

An web.storage.IDBDatabase object.

var myDatabase = transaction.db;

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

Property.

[Read Only]

An `web.storage.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.

[Read Only]

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

var myError = transaction.error;

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

Property.

[Read Only]

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

`var myError = transaction.error;`

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

modecljs

(mode this)

Property.

[Read Only]

An 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.

[Read Only]

An `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 web.storage.IDBTransaction returns an object store that has already been added to the scope this transaction.

IDBTransaction.objectStore(name);

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

Method.

The objectStore() method of the `web.storage.IDBTransaction`
returns an object store that has already been added to the scope
this transaction.

`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.

[Read Only] [Experimental]

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

var myDatabase = transactionObj.objectStoreNames;

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

Property.

[Read Only]
[Experimental]

The objectStoreNames read-only property of the `web.storage.IDBTransaction`
returns a `web.dom.DOMStringList` of names of `web.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 web.storage.IDBTransaction handles the complete event, fired when the transaction successfully

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

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

Property.

The oncomplete event handler of the `web.storage.IDBTransaction`
handles the complete event, fired when the transaction successfully

`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 web.storage.IDBTransaction handles the error event, fired when a request returns an error bubbles up 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 `web.storage.IDBTransaction`
handles the error event, fired when a request returns an error
bubbles up to the transaction object.

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

See also: `https://developer.mozilla.org/en-US/docs/Web/API/IDBTransaction/onerror`
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 web.storage.IDBTransaction handles the complete event, fired when the transaction successfully

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

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

Property.

The oncomplete event handler of the `web.storage.IDBTransaction`
handles the complete event, fired when the transaction successfully

`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 web.storage.IDBTransaction handles the error event, fired when a request returns an error bubbles up 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 `web.storage.IDBTransaction`
handles the error event, fired when a request returns an error
bubbles up 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