Documentation
¶
Overview ¶
Package sqlite provides the sqlite driver for cumulative session-memory access. The injected StateStore remains the authoritative memory owner.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(cfg memory.ConfigSnapshot, deps memory.Deps) (memory.MemoryStore, error)
New constructs a SQLite-backed `memory.MemoryStore` against `cfg.DSN`. Production callers go through `memory.Open`; tests may call `New` directly to skip the registry.
Cumulative memory uses the injected StateStore owner. This adapter has no summary engine, private transcript or recovery goroutine. Note writes use the same redactor as execution.
DSN handling mirrors the SQLite StateStore + ArtifactStore drivers: bare file paths and the special `:memory:` sentinel are supported; the driver appends `_pragma=busy_timeout(5000)` + `_pragma=journal_mode(WAL)` + `_txlock=immediate` query params so every pooled connection sees the same per-connection PRAGMAs.
`deps.Bus` is required (for the fail-closed identity-rejection emit path). `deps.State` is required — it is the persistence floor the cumulative owner writes through.
Types ¶
This section is empty.