Package layout¶
Models¶
Applications own their SQLAlchemy DeclarativeBase and
model classes. codegen_database does not provide an ORM base or mapping
hook.
Metadata helpers¶
codegen_database.views, codegen_database.functions, custom types,
PostgreSQL extension declarations, and extension hooks register objects on an
ordinary sqlalchemy.MetaData instance.
Alembic integration¶
codegen_database.alembic.register exposes the hooks used by a project’s
env.py. Internal modules provide dependency ordering, custom rendering,
schema discovery, and revision rewriting.