Skip to main content

sc_crawler.alembic_helpers

Helpers functions for the Alembic database migrations.

Functions:

  • alembic_cfg – Loads the Alembic config and sets some dynamic attributes.
  • get_revision – Get current revision of alembic in a database connection.

func alembic_cfg alembic_helpers.py:13–23⁠ (opens in a new tab)​

alembic_cfg(connection, scd=None, force_logging=True)

Loads the Alembic config and sets some dynamic attributes.

func get_revision alembic_helpers.py:26–36⁠ (opens in a new tab)​

get_revision(connection, version_table='zzz_alembic_version')

Get current revision of alembic in a database connection.

Parameters: