Skip to main content

Module reader

Module reader 

Source
Expand description

Read path: SQLite connection pool, schema probe, and typed query helpers.

Modules§

dates
Date helpers for the read path.
fixture
In-code builder for a minimal Things-shaped SQLite, used by tests.
fts
FTS5 capability detection.
pool
Semaphore-throttled, short-lived RO connection pool.
queries
Typed SQL helpers against the live Things schema. Every query goes through prepare_cached; no string interpolation of user input.
schema
Run-once schema probe asserting that every column our queries reference exists on disk. Lets us fail fast with a clear message rather than return garbage if a future Things upgrade renames or removes a column.
tags
Tree-shaped tag listing. Wraps the flat queries::list_tags and builds an ordered tree from parent_id. Cycle-safe: a HashSet guards the recursion so a malformed DB cannot loop the server.