Module transaction (3.55.0)

Spanner read-write transaction support.

Classes

BatchTransactionId

BatchTransactionId(transaction_id:str,session_id:str,read_timestamp:Any)

API documentation forspanner_v1.transaction.BatchTransactionId class.

DefaultTransactionOptions

DefaultTransactionOptions(isolation_level:str= <IsolationLevel.ISOLATION_LEVEL_UNSPECIFIED:0>)

DefaultTransactionOptions(isolation_level: str = <IsolationLevel.ISOLATION_LEVEL_UNSPECIFIED: 0>)

Transaction

Transaction(session)

Implement read-write transaction semantics for a session.

Parameter
NameDescription
sessionSession

the session used to perform the commit

Exceptions
TypeDescription
ValueErrorif session has an existing transaction

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-07-18 UTC.