SqliteStore class

Opens (or creates) a SQLite database and provides the repository implementations backed by it.

Entities are stored as their JSON document in a data column keyed by id, which keeps the schema stable as the models evolve while still giving durable, queryable, single-file storage. The database is opened on a file path, or in-memory for tests.

Constructors

SqliteStore.inMemory()
Opens an in-memory database (data lost on close).
factory
SqliteStore.open(String path)
Opens a database at path (created if missing).
factory

Properties

audit SqliteAuditRepository
The audit repository.
latefinal
db → Database
The underlying database handle.
final
desired SqliteDesiredStateRepository
The desired-state repository.
latefinal
formulas SqliteFormulaRepository
The formula repository.
latefinal
grants SqliteGrantRepository
The grant repository.
latefinal
hashCode int
The hash code for this object.
no setterinherited
metrics SqliteMetricRepository
The metric repository.
latefinal
nodes SqliteNodeRepository
The node repository.
latefinal
presets SqlitePresetRepository
The preset repository.
latefinal
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

close() → void
Closes the database.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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