SQLite key-value store wrapper
Find a file
Snider 175fd6bf83 feat(scope): add namespace isolation with quota enforcement
ScopedStore wraps Store and auto-prefixes groups with a namespace to
prevent key collisions across tenants. QuotaConfig enforces per-namespace
MaxKeys and MaxGroups limits (zero = unlimited). Upserts and expired
keys are excluded from quota counts.

New Store methods: CountAll(prefix) and Groups(prefix) for cross-group
queries. All 93 tests pass with race detector, coverage 94.7%.

Co-Authored-By: Virgil <virgil@lethean.io>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 08:19:11 +00:00
bench_test.go bench: add supplemental benchmarks for GetAll scaling, parallel, TTL, Render 2026-02-20 04:53:52 +00:00
CLAUDE.md feat(scope): add namespace isolation with quota enforcement 2026-02-20 08:19:11 +00:00
coverage_test.go test: push coverage from 90.9% to 97.0% 2026-02-20 02:41:54 +00:00
FINDINGS.md feat(store): add TTL support and harden test coverage to 90.9% 2026-02-20 01:14:08 +00:00
go.mod fix: add modernc.org/sqlite dependency 2026-02-19 16:10:16 +00:00
go.sum fix: add modernc.org/sqlite dependency 2026-02-19 16:10:16 +00:00
scope.go feat(scope): add namespace isolation with quota enforcement 2026-02-20 08:19:11 +00:00
scope_test.go feat(scope): add namespace isolation with quota enforcement 2026-02-20 08:19:11 +00:00
store.go feat(scope): add namespace isolation with quota enforcement 2026-02-20 08:19:11 +00:00
store_test.go feat(store): add TTL support and harden test coverage to 90.9% 2026-02-20 01:14:08 +00:00
TODO.md feat(scope): add namespace isolation with quota enforcement 2026-02-20 08:19:11 +00:00