Class Batch (2.1.0)

Batch(session)

Accumulate mutations for transmission during commit.

Inheritance

builtins.object > google.cloud.spanner_v1._helpers._SessionWrapper > google.cloud.spanner_v1.batch._BatchBase > Batch

Methods

__enter__

__enter__()

Begin with block.

__exit__

__exit__(exc_type, exc_val, exc_tb)

End with block.

commit

commit()

Commit mutations to the database.

Returns
TypeDescription
datetimetimestamp of the committed changes.