Batch API

Context manager for Cloud Spanner batched writes.

class google.cloud.spanner_v1.batch.Batch(session)

Bases: google.cloud.spanner_v1.batch._BatchBase

Accumulate mutations for transmission during commit() .

_ enter_ ()

Begin with block.

_ exit_ (exc_type, exc_val, exc_tb)

End with block.

commit()

Commit mutations to the database.

  • Return type

    datetime

  • Returns

    timestamp of the committed changes.

committed( = Non )

Timestamp at which the batch was successfully committed.

Design a Mobile Site
View Site in Mobile | Classic
Share by: