@@ -150,38 +150,6 @@ class SingleQueryResult:
150150 Type that return passed function.
151151 """
152152
153- class SynchronousCommit (Enum ):
154- """
155- Synchronous_commit option for transactions.
156-
157- ### Variants:
158- - `On`: The meaning may change based on whether you have
159- a synchronous standby or not.
160- If there is a synchronous standby,
161- setting the value to on will result in waiting till “remote flush”.
162- - `Off`: As the name indicates, the commit acknowledgment can come before
163- flushing the records to disk.
164- This is generally called as an asynchronous commit.
165- If the PostgreSQL instance crashes,
166- the last few asynchronous commits might be lost.
167- - `Local`: WAL records are written and flushed to local disks.
168- In this case, the commit will be acknowledged after the
169- local WAL Write and WAL flush completes.
170- - `RemoteWrite`: WAL records are successfully handed over to
171- remote instances which acknowledged back
172- about the write (not flush).
173- - `RemoteApply`: This will result in commits waiting until replies from the
174- current synchronous standby(s) indicate they have received
175- the commit record of the transaction and applied it so
176- that it has become visible to queries on the standby(s).
177- """
178-
179- On = 1
180- Off = 2
181- Local = 3
182- RemoteWrite = 4
183- RemoteApply = 5
184-
185153class IsolationLevel (Enum ):
186154 """Isolation Level for transactions."""
187155
@@ -1117,15 +1085,13 @@ class Connection:
11171085 isolation_level : IsolationLevel | None = None ,
11181086 read_variant : ReadVariant | None = None ,
11191087 deferrable : bool | None = None ,
1120- synchronous_commit : SynchronousCommit | None = None ,
11211088 ) -> Transaction :
11221089 """Create new transaction.
11231090
11241091 ### Parameters:
11251092 - `isolation_level`: configure isolation level of the transaction.
11261093 - `read_variant`: configure read variant of the transaction.
11271094 - `deferrable`: configure deferrable of the transaction.
1128- - `synchronous_commit`: configure synchronous_commit option for transaction.
11291095 """
11301096 def cursor (
11311097 self : Self ,
0 commit comments