Help us shape the future of Go! Take the 2026 Go Developer Survey

sqlite

package
v1.33.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 23, 2026 License: Apache-2.0 Imports: 17 Imported by: 0

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

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL