Class Batch (1.19.3)

  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 
 () 
 

Commit mutations to the database.

Returns
Type
Description
datetime
timestamp of the committed changes.
Create a Mobile Website
View Site in Mobile | Classic
Share by: