transaction abstract method

Transaction transaction(
  1. Object storeNameOrStoreNames,
  2. String mode
)

returns a transaction object (Transaction) containing the Transaction.objectStore method, which you can use to access your object store.

mode can be readonly (idbModeReadOnly), the default or readwrite (idbModeReadWrite)

Implementation

Transaction transaction(Object storeNameOrStoreNames, String mode);