rawInsert method

Future<int> rawInsert(
  1. String sql,
  2. [List arguments]
)

Executes a raw SQL INSERT query and returns the last inserted row ID.

int id1 = await database.rawInsert(
  'INSERT INTO Test(name, value, num) VALUES("some name", 1234, 456.789)');

Implementation

Future<int> rawInsert(String sql, [List<dynamic> arguments]);