[agent/codex:gpt-5.4-mini] Read docs/RFC-STORE.md fully. Find features described in the... #152

Merged
Virgil merged 1 commit from agent/read---spec-code-core-go-store-rfc-md-fu into dev 2026-04-04 14:36:54 +00:00
2 changed files with 5 additions and 1 deletions

3
doc.go
View file

@ -1,6 +1,7 @@
// Package store provides SQLite-backed key-value storage for grouped entries,
// TTL expiry, namespace isolation, quota enforcement, reactive change
// notifications, workspace journalling, and orphan recovery.
// notifications, SQLite journal writes, workspace journalling, and orphan
// recovery.
//
// Workspace files live under `.core/state/` and can be recovered with
// `RecoverOrphans(".core/state/")`.

View file

@ -83,6 +83,9 @@ func (journalConfig JournalConfiguration) isConfigured() bool {
journalConfig.BucketName != ""
}
// Store is the SQLite KV store with TTL expiry, namespace isolation,
// reactive events, SQLite journal writes, and orphan recovery.
//
// Usage example: `storeInstance, err := store.NewConfigured(store.StoreConfig{DatabasePath: ":memory:", Journal: store.JournalConfiguration{EndpointURL: "http://127.0.0.1:8086", Organisation: "core", BucketName: "events"}, PurgeInterval: 30 * time.Second})`
// Usage example: `value, err := storeInstance.Get("config", "colour")`
type Store struct {