Database path discovery and schema management for the deciduous SQLite database.
Searches from cwd upward for .deciduous/deciduous.db.
Ensures required tables exist on startup.
Summary
Functions
Ensures all required tables exist in the database. Creates missing tables with IF NOT EXISTS. Called automatically on CLI startup.
Finds the path to the deciduous SQLite database by walking up from cwd.
Returns {:ok, path} or :error if not found.