sc_crawler.alembic_helpers
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_cfg(connection, scd=None, force_logging=True)
Loads the Alembic config and sets some dynamic attributes.
func get_revision
get_revision(connection, version_table='zzz_alembic_version')
Get current revision of alembic in a database connection.
Parameters:
- connection (
Connection) – SQLAlchemy connection to look up revision inversion_table - version_table (
str) – name of the table storing revision