degenbot.db =========== .. py:module:: degenbot.db .. autoapi-nested-parse:: Rust-backed database row types + operations — the stable mirror home for ``_ffi.db``. Re-exports the Rust-backed database surface from the ``degenbot._ffi.db`` submodule. Importers should use:: from degenbot.db import db_backup_database (the pool-updater row-input/event types now live exclusively in ``degenbot.updater``) rather than reaching into ``degenbot._ffi`` directly — this path is stable across future Rust reshuffles, and lets the Rust crate structure (``degenbot-db``) show through to Python. The functions are thin PyO3 wrappers over the pure-Rust ``degenbot-db`` core crate; the ``db_`` prefix is retained on the submodule names (unlike the math submodules which dropped their prefix) because ``db_`` is a clear functional namespace marker for the ~45 database operations. The classes are ADR-005 ``Py*`` aliases / ``*Row``/``*RowInput`` types. This is the sole Python database mirror: it owns the Rust-backed row types and operations, while the pure-Rust ``degenbot-db`` crate owns the schema and upgrades it at open (ADR-052).