sqlite library
Classes
-
Command<
P> - A command that mutates data (INSERT, UPDATE, DELETE).
-
DeleteCommand<
P> - A specialized Command for dynamic deletes by primary key.
-
InsertCommand<
P> - A specialized Command for dynamic inserts.
- MutationResult
- Information about a mutation (INSERT, UPDATE, DELETE).
- NoOpMutationResult
- A MutationResult for commands that were skipped (no-op).
-
Query<
P, R extends Record> -
Pdefines the input Parameter type.Rdefines the expected output Record type (serves as a token for custom linting). -
Row<
R extends Record> -
Ris the Expected Record type (enables compile-time key validation via custom linters). -
RowSet<
R extends Record> - SQL
- Explicit SQL-null marker for dynamic commands.
- SqliteParsers
- Common parser logic for SQLite values.
- SqlRecords
- The core executor interface, supporting mutations and transactions.
- SqlRecordsReadonly
- Context for read-only operations.
-
UpdateCommand<
P> - A specialized Command for "patch" updates.
Extensions
-
RowConvenience
on Row<
Record>
Constants
- NoOpCommand → const String
- Sentinel value for a command that does nothing (e.g., no fields to update).
Functions
-
SqlRecordsSqlite(
Database db) → SqlRecords -
Creates a SqlRecords instance from a
sqlite.Database.
Typedefs
-
ParamMapper<
P> = Map< String, Object?> Function(P params) - Maps a Record/Class to a SQLite named parameter map.
-
ResultSchema
= Map<
String, Type> - Best-effort schema definition using Dart's Type objects (e.g., int, String).