startTransaction method

  1. @override
FutureOr<void> startTransaction(
  1. Future run(
    1. QueryDelegate p1

Start a transaction, which we assume implements QueryDelegate, and call run with the transaction.

If run completes with an error, rollback. Otherwise, commit.

The returned future should complete once the transaction has been commited or was rolled back.


FutureOr<void> startTransaction(Future Function(QueryDelegate p1) run) async {
  await runInTransaction(run);