# `Deciduex.DB`
[🔗](https://github.com/notactuallytreyanastasio/deciduous/blob/main/lib/deciduex/db.ex#L1)
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.
# `ensure_schema`
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.
---
*Consult [api-reference.md](api-reference.md) for complete listing*