Documentation
¶
Overview ¶
Package sqlitestore is the built-in default store backend. It is pure Go (no cgo) via modernc.org/sqlite, so it adds no build requirement to a kit binary. Importing it registers the "sqlite" scheme; kit imports it by default, so any kit CLI can persist with --db x.db out of the box. Future file/SQL backends (DuckDB, Postgres) live in sibling packages a consumer opts into.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Open ¶
Open opens (creating if needed) a SQLite database at path. Each record collection becomes a table of (id PRIMARY KEY, data JSON, updated_at); this generic shape stores any record type and is identical across SQL backends, so switching to DuckDB or Postgres changes only the driver, not the schema. A domain that wants a relational schema supplies its own store.Store instead.
Types ¶
This section is empty.