Expand description
PostgreSQL lifecycle support for storage owned by one Lenso Module.
This crate deliberately is not a shared State Module, SQL Capability, or
repository abstraction. A Module keeps ownership of its data model,
migrations, queries, and transaction boundaries. The kit only makes the
repetitive PostgreSQL schema lifecycle explicit and fail-closed.
Macros§
- sql_
migrations - Declares immutable migrations whose SQL bodies live in dedicated files.
Structs§
- Migration
- One immutable, ordered migration owned by a Module.
- Owned
Postgres - A verified, schema-scoped
PostgreSQLpool for one Module. - Schema
Operator - Explicit operator-only setup and upgrade workflows for one owned schema.
- Schema
Plan - An immutable description of one Module-owned
PostgreSQLschema.
Enums§
- Plan
Error - A schema plan is invalid and cannot be used for setup or preparation.
- Postgres
KitError - A
PostgreSQLschema lifecycle operation failed without applying a fallback. - Setup
Outcome - Result of explicitly setting up an owned schema.
- Upgrade
Outcome - Result of explicitly upgrading an owned schema.