commands¶
- class advanced_alchemy.alembic.commands.AlembicSpannerImpl[source]¶
Bases:
DefaultImpl
Alembic implementation for Spanner.
- class advanced_alchemy.alembic.commands.AlembicDuckDBImpl[source]¶
Bases:
DefaultImpl
Alembic implementation for DuckDB.
- class advanced_alchemy.alembic.commands.AlembicCommandConfig[source]¶
Bases:
Config
- __init__(engine, version_table_name, bind_key=None, file_=None, ini_section='alembic', output_buffer=None, stdout=<_io.TextIOWrapper name='<stdout>' mode='w' encoding='utf-8'>, cmd_opts=None, config_args=None, attributes=None, template_directory=None, version_table_schema=None, render_as_batch=True, compare_type=False, user_module_prefix='sa.')[source]¶
Initialize the AlembicCommandConfig.
- Parameters:
engine¶ (sqlalchemy.engine.Engine | sqlalchemy.ext.asyncio.AsyncEngine) – The SQLAlchemy engine instance.
file_¶ (str | os.PathLike[str] | None) – The file path for the alembic configuration.
output_buffer¶ (TextIO | None) – The output buffer for alembic commands.
cmd_opts¶ (argparse.Namespace | None) – Command line options.
config_args¶ (Mapping[str, Any] | None) – Additional configuration arguments.
attributes¶ (dict[str, Any] | None) – Additional attributes for the configuration.
template_directory¶ (pathlib.Path | None) – The directory for alembic templates.
version_table_schema¶ (str | None) – The schema for the version table.
render_as_batch¶ (bool) – Whether to render migrations as batch.
compare_type¶ (bool) – Whether to compare types during migrations.
user_module_prefix¶ (str | None) – The prefix for user modules.