execute abstract method

Future<DatabaseResult<void>> execute(
  1. String sql, {
  2. List<Object?> parameters = const [],
  3. bool checkInTransaction = false,
  4. LockToken? token,
  5. Future<void>? abortTrigger,
})

Prepares sql and executes it with the given parameters.

If checkInTransaction is enabled, the host will verify that the autocommit mode is disabled before running the statement (and report an exception otherwise).

The abortTrigger can be used to abort the request. When that future completes before the lock has been granted, the future may complete with a AbortException without running the statement.

Implementation

Future<DatabaseResult<void>> execute(
  String sql, {
  List<Object?> parameters = const [],
  bool checkInTransaction = false,
  LockToken? token,
  Future<void>? abortTrigger,
});