9 Chapter 9: Core Architecture & Design
Chapter Outline:
- 9.1. Guiding Principles (Developer Focus)
- A deeper dive into the “Why” from
design.md. - Standard SQLite Compatibility as a “no-magic” rule.
- Convention over Configuration.
- A deeper dive into the “Why” from
- 9.2. The Manager Delegation Pattern
- How
BeaverDBacts as a factory. - How managers (e.g.,
DictManager) are initialized with a reference to the coreBeaverDBconnection pool. - How all tables are prefixed with
beaver_to avoid user-space conflicts.
- How
- 9.3. Type-Safe Models (
beaver.Model)- Using the
model=...parameter for automatic serialization and deserialization. - Inheriting from
beaver.Modelfor a lightweight, Pydantic-compatible solution.
- Using the