transaction.store.put() - cieszynski/dberta.js GitHub Wiki

Syntax

TRANSACTION.STORE.put(obj[, key])

Parameters

obj
The item you wish to update (or insert).

key (optional)
Submit a key if you use out-of-line keys.

Return value

A Promise that resolves to the key for the new or updated record.

Description

This method conveniently wraps the put() method of the IDBObjectStore interface.

Exceptions

ReadOnlyError (from IDBObjectStore)

TransactionInactiveError (from IDBObjectStore)

DataError (from IDBObjectStore)

InvalidStateError (from IDBObjectStore)

DataCloneError (from IDBObjectStore)