execute method

  1. @override
Future<int> execute(
  1. String sql, [
  2. List<Object?> bindings = const []
])
inherited

Runs INSERT/UPDATE/DELETE/DDL and returns the number of affected rows.

Implementation

@override
Future<int> execute(String sql, [List<Object?> bindings = const []]) => _run(
  sql,
  bindings,
  () async => (await _execute(sql, bindings)).affectedRows,
);