SqliteResolver typedef

SqliteResolver = FutureOr<Sqlite3> Function()

Signature of a function that obtains an instance of Sqlite3 bindings.

By default, drift will use the default sqlite3 instance from package:sqlite3. But especially for users interested in trying out sqlite3_native_assets, passing this function allows customizing the SQLite bindings:

NativeDatabase.createInBackground(
  File(...),
  sqlite3: () => sqlite3Native,
);

Implementation

typedef SqliteResolver = FutureOr<Sqlite3> Function();