execute method

  1. @override
Future<void> execute(
  1. String sql, [
  2. List<Object?>? arguments
])
override

Executes a single SQL statement with no return value.

You cannot have multiple statements (separated by ; or by line), as this is not supported. i.e. you cannot create 2 tables for example.

  await db.execute(
  'CREATE TABLE Test (id INTEGER PRIMARY KEY, name TEXT, value INTEGER, num REAL)');

Implementation

@override
Future<void> execute(String sql, [List<Object?>? arguments]) =>
    throw _dbNotEnabled();