Module transaction (3.50.1)

Spanner read-write transaction support.

Classes

BatchTransactionId

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

API documentation for spanner_v1.transaction.BatchTransactionId class.

Transaction

Transaction(session)

Implement read-write transaction semantics for a session.

Parameter
Name Description
session Session

the session used to perform the commit

Exceptions
Type Description
ValueError if session has an existing transaction