Skip to content

Commit

Permalink
doc: sdb transaction
Browse files Browse the repository at this point in the history
  • Loading branch information
alextekartik committed Jul 20, 2024
1 parent 6087651 commit eedbd1b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions idb_shim/doc/sdb.md
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,10 @@ The API is similar to sembast but:

Similar to indexed db, you declare the stores on which the transaction occurs and the mode (read or write).

Note that since indexed_db does not allow for a transaction to be opened forever you need to keep your transaction
for doing only doing synchronous operations or async operations only on the database (i.e. don't fetch data or any other
async operation that does not involve reading or writing to the database).

```dart
await db.inStoreTransaction(bookStore, SdbTransactionMode.readWrite,
(txn) async {
Expand Down

0 comments on commit eedbd1b

Please sign in to comment.