Skip to content

Commit d3e301d

Browse files
Address missing durability attribute/docs. Fixes #316 (#317)
1 parent e103766 commit d3e301d

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

index.bs

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2667,13 +2667,14 @@ instance on which it was called.
26672667
<dl class="domintro note">
26682668
: |transaction| = |connection| .
26692669
{{IDBDatabase/transaction()|transaction}}(|scope|
2670-
[, |mode| = "readonly"])
2670+
[, |mode| [, |options| ] ])
26712671
::
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"}}.
26772678

26782679
: |connection| . {{IDBDatabase/close()|close}}()
26792680
::
@@ -4816,6 +4817,7 @@ the contents of the database.
48164817
interface IDBTransaction : EventTarget {
48174818
readonly attribute DOMStringList objectStoreNames;
48184819
readonly attribute IDBTransactionMode mode;
4820+
readonly attribute IDBTransactionDurability durability;
48194821
[SameObject] readonly attribute IDBDatabase db;
48204822
readonly attribute DOMException? error;
48214823

0 commit comments

Comments
 (0)