DatabaseQuery typedef

DatabaseQuery = Future<List<Map<String, Object?>>> Function(String sql, List<Object?> args)

Runs one statement and answers with its rows. The adapter's query should be wired to a read path (sqlite_async's getAll runs on the read pool, so a write smuggled into it dies at the sqlite layer); execute is the write door and exists only when the app provides it.

Implementation

typedef DatabaseQuery = Future<List<Map<String, Object?>>> Function(
  String sql,
  List<Object?> args,
);