alembic

advanced_alchemy.extensions.litestar.alembic.get_database_migration_plugin(app: Litestar) SQLAlchemyInitPlugin[source]

Retrieve a database migration plugin from the Litestar application’s plugins.

This function attempts to find and return either the SQLAlchemyPlugin or SQLAlchemyInitPlugin. If neither plugin is found, it raises an ImproperlyConfiguredException.