type

Store

type Store struct { db *sql.DB anchor *sql.Conn dsn string filePath string lockPath string now func() time.Time writeGate chan struct{} uploadGate chan struct{} }

A SQLite implementation of Ridu’s document, snapshot, auth, preference, task, lock, version, and migration store contracts.

Source adapters/sqlite/sqlite.go:51

@param store.Store
Begins atomic read-write operation transactions.
@param store.SnapshotStore
Begins stable read snapshots.
@param store.HealthStore
Checks SQLite connectivity and foreign-key enforcement.
@param store.ReadinessStore
Checks the exact applied manifest.
@param store.MigrationReadinessStore
Checks the complete ordered ledger against the fingerprint embedded in the release binary.
@param store.PreferenceStore
Persists per-user settings.
@param store.DocumentLockStore
Coordinates authoring leases.
@param store.AuthStore
Persists credentials, sessions, tokens, API keys, and rate limits.
@param store.AuthMaintenanceStore
Prunes expired auth records in bounded batches.
@param store.AuthUnlockStore
Clears authorized lockout state.
@param store.TaskStore
Persists and leases durable work.
@param store.UploadObjectLocker
Coordinates upload object changes on one host.

Use the application and Local API for content operations. SQLite is supported on a local filesystem and one application host; it is not a shared-network-filesystem or multi-host store.

Methods