drift.ffi library Null safety
A drift database implementation built on
The NativeDatabase class uses
dart:ffi to access
When using a NativeDatabase, you need to ensure that
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.
A drift database implementation based on
dart:ffi, running directly in a Dart VM or an AOT compiled Dart/Flutter application.
- DatabaseSetup = void Function(Database database)
Signature of a function that can perform setup work on a
databasebefore drift is fully ready.
Exceptions / Errors
- Thrown by sqlite methods.