drift_flutter library
This library provides driftDatabase, a function suitable for opening drift databases on Flutter apps.
Classes
- DriftNativeOptions
- Options used to open drift databases on native platforms (outside of the web).
- DriftWebOptions
- Web-specific options used to open drift databases.
- WasmDatabaseResult
- The result of opening a WASM database with default options.
- WasmProbeResult
- The result of probing the current browser for wasm compatibility.
Enums
- MissingBrowserFeature
- An enumeration of features not supported by the current browsers.
- WasmStorageImplementation
-
The storage implementation used by the
drift
andsqlite3
packages to emulate a synchronous file system on the web, used by the sqlite3 C library to store databases. - WebStorageApi
- The storage API used by drift to store a database.
Functions
-
driftDatabase(
{required String name, DriftWebOptions? web, DriftNativeOptions? native}) → QueryExecutor -
Obtain a
QueryExecutor
to use for drift databases on the current platform.
Typedefs
- ExistingDatabase = (WebStorageApi, String)
- Information about an existing web database, consisting of its storage API (WebStorageApi) and its name.
- WasmDatabaseSetup = void Function(CommonDatabase database)
-
Signature of a function that can perform setup work on a
database
before drift is fully ready.