server.web.db.migrate

Functions

apply_migrations(→ None)

Apply Alembic migrations to the database.

init_db(→ None)

Initialize the database: create if needed, apply migrations.

terminate_db(→ None)

Drop the database if it exists.

Module Contents

server.web.db.migrate.apply_migrations(uri: str, revision: str = 'head') None

Apply Alembic migrations to the database.

server.web.db.migrate.init_db(uri: str = '') None

Initialize the database: create if needed, apply migrations.

server.web.db.migrate.terminate_db(uri: str) None

Drop the database if it exists.