harp_apps.storage.utils.migrations

create_alembic_config(url)[source]

Create our alembic configuration object, to run alembic commands.

Parameters:

url (str | URL | Url | MultiHostUrl)

create_harp_settings_with_storage_from_command_line_options(kwargs)[source]

Create a Harp configuration object using common server command line options (–set…) with the sqlalchemy storage application installed so that the storage is properly configured.

async do_migrate(engine, *, migrator, reset=False)[source]
async do_reset(engine)[source]