native library
A drift database implementation built on package:sqlite3/.
The NativeDatabase class uses dart:ffi to access sqlite3 APIs.
When using a NativeDatabase, you need to ensure that sqlite3 is
available when running your app. For mobile Flutter apps, you can simply
depend on the sqlite3_flutter_libs package to ship the latest sqlite3
version with your app.
For more information other platforms, see other engines.
Classes
- NativeDatabase
-
A drift database implementation based on
dart:ffi, running directly in a Dart VM or an AOT compiled Dart/Flutter application.
Typedefs
- DatabaseSetup = void Function(Database database)
-
Signature of a function that can perform setup work on a
databasebefore drift is fully ready. -
IsolateSetup
= FutureOr<
void> Function() - Signature of a function that can perform setup work on the isolate before opening the database.
-
SqliteResolver
= FutureOr<
Sqlite3> Function() -
Signature of a function that obtains an instance of
Sqlite3bindings.
Exceptions / Errors
- SqliteException
- Thrown by sqlite methods.