transaction.store.add() - cieszynski/dberta.js GitHub Wiki
Syntax
TRANSACTION.STORE.add(obj[, key])
Parameters
obj
key
Return value
A Promise that resolves to the key for the new record.
Description
This method conveniently wraps the add()
method of the IDBObjectStore interface.
Exceptions
ConstraintError
Key already exists in the object store.