statement method

Future<int> statement(
  1. String sql, [
  2. Object? bindings = const <Object?>[],
  3. String? connection
])

Runs a raw statement and returns the affected row count.

Implementation

Future<int> statement(
  String sql, [
  Object? bindings = const <Object?>[],
  String? connection,
]) async {
  final executor = await this.executor(connection);
  final (expanded, values) = _expand(sql, bindings, executor.dialect);
  return executor.execute(expanded, values);
}