2929__all__ = ("Transaction" , "ManagedTransaction" )
3030
3131
32- class _AsyncTransactionBase :
32+ class _TransactionBase :
3333 def __init__ (self , connection , fetch_size , on_closed , on_error ):
3434 self ._connection = connection
3535 self ._error_handling_connection = ConnectionErrorHandler (
@@ -196,7 +196,7 @@ def _closed(self):
196196 return self ._closed_flag
197197
198198
199- class Transaction (_AsyncTransactionBase ):
199+ class Transaction (_TransactionBase ):
200200 """ Container for multiple Cypher queries to be executed within a single
201201 context. :class:`Transaction` objects can be used as a context
202202 managers (:py:const:`with` block) where the transaction is committed
@@ -207,32 +207,32 @@ class Transaction(_AsyncTransactionBase):
207207
208208 """
209209
210- @wraps (_AsyncTransactionBase ._enter )
210+ @wraps (_TransactionBase ._enter )
211211 def __enter__ (self ):
212212 return self ._enter ()
213213
214- @wraps (_AsyncTransactionBase ._exit )
214+ @wraps (_TransactionBase ._exit )
215215 def __exit__ (self , exception_type , exception_value , traceback ):
216216 self ._exit (exception_type , exception_value , traceback )
217217
218- @wraps (_AsyncTransactionBase ._commit )
218+ @wraps (_TransactionBase ._commit )
219219 def commit (self ):
220220 return self ._commit ()
221221
222- @wraps (_AsyncTransactionBase ._rollback )
222+ @wraps (_TransactionBase ._rollback )
223223 def rollback (self ):
224224 return self ._rollback ()
225225
226- @wraps (_AsyncTransactionBase ._close )
226+ @wraps (_TransactionBase ._close )
227227 def close (self ):
228228 return self ._close ()
229229
230- @wraps (_AsyncTransactionBase ._closed )
230+ @wraps (_TransactionBase ._closed )
231231 def closed (self ):
232232 return self ._closed ()
233233
234234
235- class ManagedTransaction (_AsyncTransactionBase ):
235+ class ManagedTransaction (_TransactionBase ):
236236 """Transaction object provided to transaction functions.
237237
238238 Inside a transaction function, the driver is responsible for managing
0 commit comments