Singleton SQLite database layer for the Recipedia app.
Exposes all CRUD operations for recipes, ingredients, tags, menu items, and
purchased-ingredient state. Maintains an in-memory cache of every table so
that read operations are synchronous after initialization. Implements a
slice-based pub/sub model (via StoreSlice) to integrate with
useSyncExternalStore without requiring React Context or Redux.
Singleton SQLite database layer for the Recipedia app.
Exposes all CRUD operations for recipes, ingredients, tags, menu items, and purchased-ingredient state. Maintains an in-memory cache of every table so that read operations are synchronous after initialization. Implements a slice-based pub/sub model (via StoreSlice) to integrate with
useSyncExternalStorewithout requiring React Context or Redux.