startTransaction abstract method

Future<Transaction> startTransaction({
  1. required TransactionHeaders headers,
  2. int maxWait = 2000,
  3. int timeout = 5000,
  4. TransactionIsolationLevel? isolationLevel,
})

Starts a transaction.

  • headers are the headers to be sent with the request.
  • maxWait is the maximum amount of time to wait for the transaction to start.
  • timeout is the maximum amount of time to wait for the transaction to complete.
  • isolationLevel is the isolation level to be used for the transaction.

Implementation

Future<Transaction> startTransaction({
  required TransactionHeaders headers,
  int maxWait = 2000,
  int timeout = 5000,
  TransactionIsolationLevel? isolationLevel,
});