Class Batch (3.5.0)

Batch(session)

Accumulate mutations for transmission during commit.

Methods

__enter__

__enter__()

Begin with block.

__exit__

__exit__(exc_type, exc_val, exc_tb)

End with block.

commit

commit(return_commit_stats=False)

Commit mutations to the database.

Parameter
NameDescription
return_commit_stats bool

If true, the response will return commit stats which can be accessed though commit_stats.

Returns
TypeDescription
datetimetimestamp of the committed changes.