Ligare.database.migrations.alembic.ligare_alembic

The ligare-alembic application.

Classes

LigareAlembic(argv, logger)

class Ligare.database.migrations.alembic.ligare_alembic.LigareAlembic(argv, logger)[source]
DEFAULT_CONFIG_NAME: str = 'alembic.ini'
class FileCopy(source, destination)[source]
__init__(source, destination)

Method generated by attrs for class LigareAlembic.FileCopy.

destination: Path
source: Path
LOG_LEVEL_NAME: str = 'LOG_LEVEL'
__init__(argv, logger)[source]

_summary_

Parameters:
  • argv (list[str] | None) – The command line arguments to be parsed by ArgumentParser. If None, this will use sys.argv[1:] to use CLI arguments.

  • logger (Logger) – A logger for writing messages.

run()[source]

Run Alembic migrations, initializing Alembic if necessary.

Return None:

Return type:

None