transaction.store.count() - cieszynski/dberta.js GitHub Wiki
Syntax
TRANSACTION.STORE.count([keyOrKeyRange])
Parameters
keyOrKeyRange
Return value
A Promise that resolves to the number of records that match the given query.
Description
This method conveniently wraps the count()
method of the IDBObjectStore interface.
Exceptions
InvalidStateError
(from IDBObjectStore)
TransactionInactiveError
(from IDBObjectStore)
DataError
(from IDBObjectStore)