transaction

fun transaction(    storeNames: String,     mode: IDBTransactionMode = definedExternally,     options: IDBTransactionOptions = definedExternally): IDBTransaction(source)

The transaction method of the IDBDatabase interface immediately returns a transaction object (IDBTransaction) containing the IDBTransaction.objectStore method, which you can use to access your object store.

MDN Reference


fun transaction(    storeNames: ReadonlyArray<JsString>,     mode: IDBTransactionMode = definedExternally,     options: IDBTransactionOptions = definedExternally): IDBTransaction(source)