execute abstract method

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

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

Future<void> execute(String sql, [List<Object?>? arguments]);