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

Syntax

TRANSACTION.STORE.get(keyOrKeyRange)

Parameters

keyOrKeyRange

Return value

A Promise that resolves to the value of the first record matching the given key or key range.

Description

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

Exceptions

TransactionInactiveError (from IDBObjectStore)

DataError (from IDBObjectStore)

InvalidStateError (from IDBObjectStore)