SqliteAdapter class final Getting Started

BasaltAdapter for the SQLite backend.

Supported database: options — exactly one key:

database:
  path: app.db   # filesystem path, or `:memory:`

The always-on typeOverrides preset restores fidelity lost to SQLite's type affinity: columns declared BOOLEAN/BOOL or DATETIME/TIMESTAMP introspect as plain INTEGER, but their declared type survives in rawType, so generate-schema can emit bool/DateTime (portable core types) instead of int.

Constructors

SqliteAdapter()
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
name → String
Short backend name for diagnostics, e.g. 'sqlite'.
no setter
nativeTypeOverrides → SchemaTypeOverrides
Backend-native generate-schema presets, applied only when the project opts in with native_types: true in basalt.yaml.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
typeOverrides → SchemaTypeOverrides
Always-applied generate-schema presets.
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
open(Map<String, Object?> options) → Future<Connection>
Opens a live connection described by options — the raw database: section of basalt.yaml, passed through as-is.
reset(Map<String, Object?> options) → Future<void>
Destroys the database described by options so database reset can rebuild it from scratch by re-running migrations.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited