executeWith method

Future<QueryResult> executeWith(
  1. String sql, {
  2. List<Object?> positional = const [],
  3. Map<String, Object?> named = const {},
})

One-shot convenience: prepare sql, bind positional/named, run once, and return the result. Use prepare directly if you want to reuse the statement.

Implementation

Future<QueryResult> executeWith(
  String sql, {
  List<Object?> positional = const [],
  Map<String, Object?> named = const {},
}) {
  return prepare(sql).execute(positional: positional, named: named);
}