Deciduex.DB (deciduex v0.14.0-beta.3)

Copy Markdown View Source

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.

Functions

ensure_schema(repo)

Ensures all required tables exist in the database. Creates missing tables with IF NOT EXISTS. Called automatically on CLI startup.

find_db_path()

Finds the path to the deciduous SQLite database by walking up from cwd. Returns {:ok, path} or :error if not found.