drift.ffi library Null safety

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 database before drift is fully ready. [...]

Exceptions / Errors

SqliteException
Thrown by sqlite methods. [...]