execute method

void execute([
  1. List<Object?> parameters = const <Object>[]
])

Executes this statement, ignoring result rows if there are any.

If the parameters list does not match the amount of parameters in the original SQL statement (parameterCount), an ArgumentError will be thrown. See StatementParameters for a list of types supported by this library. If sqlite3 reports an error while running this statement, a SqliteException will be thrown.

To run a statement and also obtaining returned rows, use selectWith or iterateWith. It is safe to call these methods on statements that aren't SELECT statements (such as writes with a RETURNING clause) too.

Implementation

void execute([List<Object?> parameters = const <Object>[]]) {
  return executeWith(StatementParameters(parameters));
}