sqlite library Open a database
Sqlite connections for SQL execution and optional typed model views.
sqlite opens an owning SQL runtime. Import package:orm/sql.dart for
SQL operations, and package:orm/orm.dart to add a model view of that runtime.
SqliteDriver remains available for explicit driver ownership and leasing.
Classes
- Sqlite
- Type marker for native and browser SQLite drivers and sessions.
- SqliteDriver
- Owns one SQLite connection and serializes complete connection leases.
- SqliteOptions
- Chooses an in-memory, native-file, or browser-persistent SQLite database.
- SqliteWebOptions
- Advanced browser asset overrides. Flutter Web needs no asset configuration.
Enums
- SqliteJournal
- Native SQLite journal mode; browser persistence manages its own storage.
Functions
-
sqlite(
SqliteOptions options, {void onQuery(QueryEvent)?, void onAcquire(AcquisitionEvent)?}) → Future< SqlDatabase< Sqlite> > - Opens a connection and returns its owning SQL runtime.
Exceptions / Errors
- SqliteFailure
- A SQLite error preserving both the primary and extended result codes.