Ligare.database.migrations.alembic.env_setup
Ligare.database environment modification for Alembic migration.
Classes
|
|
|
- final class Ligare.database.migrations.alembic.env_setup.AlembicEnvSetup(config)[source]
-
- run_migrations_offline(bases)[source]
Run migrations in ‘offline’ mode.
This configures the context with just a URL and not an Engine, though an Engine is acceptable here as well. By skipping the Engine creation we don’t even need a DBAPI to be available.
Calls to context.execute() here emit the given string to the script output.
- protocol Ligare.database.migrations.alembic.env_setup.type_include_object[source]
typing.Protocol
.Classes that implement this protocol must have the following methods / attributes: