@@ -2667,13 +2667,14 @@ instance on which it was called.
2667
2667
<dl class="domintro note">
2668
2668
: |transaction| = |connection| .
2669
2669
{{IDBDatabase/transaction()|transaction}} (|scope|
2670
- [, |mode| = "readonly" ] )
2670
+ [, |mode| [, |options| ] ])
2671
2671
::
2672
- Returns a new [=/transaction=] with the given |mode|
2673
- ({{"readonly"}} or {{"readwrite"}} )
2674
- and |scope| which can be a single [=/object store=]
2675
- [=object-store/name=] or an array of
2676
- [=object-store/names=] .
2672
+ Returns a new [=/transaction=] with the given
2673
+ |scope| (which can be a single [=/object store=] [=object-store/name=] or an array of [=object-store/names=] ),
2674
+ |mode| ({{"readonly"}} or {{"readwrite"}} ),
2675
+ and additional |options| including {{IDBTransactionOptions/durability}} ({{"default"}} , {{"strict"}} or {{"relaxed"}} ).
2676
+
2677
+ The default |mode| is {{"readonly"}} and the default {{IDBTransactionOptions/durability}} is {{"default"}} .
2677
2678
2678
2679
: |connection| . {{IDBDatabase/close()|close}} ()
2679
2680
::
@@ -4816,6 +4817,7 @@ the contents of the database.
4816
4817
interface IDBTransaction : EventTarget {
4817
4818
readonly attribute DOMStringList objectStoreNames;
4818
4819
readonly attribute IDBTransactionMode mode;
4820
+ readonly attribute IDBTransactionDurability durability;
4819
4821
[SameObject] readonly attribute IDBDatabase db;
4820
4822
readonly attribute DOMException? error;
4821
4823
0 commit comments