runBatched method

Future<void> runBatched(
  1. BatchedStatements statements
)

Runs multiple statements without having to prepare the same statement multiple times.

See also:

Implementation

Future<void> runBatched(BatchedStatements statements) async {
  // default, inefficient implementation
  for (final application in statements.arguments) {
    final sql = statements.statements[application.statementIndex];

    await runCustom(sql, application.arguments);
  }
}