src/dazzle_back/alembic/env.py¶
Generated: 2026-03-30T04:38:45.564582+00:00
Commit: 615f1354a103
Language: python
Scope: dazzle_back
Purpose¶
Alembic environment configuration for Dazzle.
Reads DATABASE_URL from the environment and uses the EntitySpec → SQLAlchemy
MetaData bridge as target_metadata so that --autogenerate can diff
the DSL schema against the live database.
Key Exports¶
run_migrations_offlinerun_migrations_online
Dependencies¶
Imports¶
loggingossyslogging.config.fileConfigpathlib.Pathtyping.Anysqlalchemyalembic.contextalembic.operations.opssqlalchemysqlalchemy.create_enginedazzle.core.dsl_parser.parse_modulesdazzle.core.fileset.discover_dsl_filesdazzle.core.linker.build_appspecdazzle.core.manifest.load_manifestdazzle_back.runtime.sa_schema.build_metadatadazzle_back.runtime.safe_casts.get_using_clausedazzle_back.converters.entity_converter.convert_entitiesre
Event Interactions¶
None detected.
Invariants and Assumptions¶
No invariants documented.
Tests¶
tests/unit/test_cli_env.pytests/unit/test_alembic_env_url.pytests/unit/test_set_factory_env.py
Notes¶
This page was automatically generated by tools/gen_reference_docs.py.