batch abstract method

Batch batch()

Creates a batch, used for performing multiple operation in a single atomic operation.

A batch can either be committed atomically with Batch.commit, or non- atomically by calling Batch.apply. For details on the two methods, see their documentation. In general, it is recommended to finish batches with Batch.commit.

When committed with Batch.commit, sqflite will manage a transaction to execute statements in the batch. If this batch method has been called on a Transaction, committing the batch is deferred to when the transaction completes (but Batch.apply or Batch.commit still need to be called).


Batch batch();