igortg/pytest-async-sqlalchemy

Alembic compatibility

Closed this issue · 2 comments

As i undersand, this project currently support db initializing only with Base.metadata.create_all. I think, it will be a good feature of setting up tables using Alembic migrations.

Can you help me design that by detailing your requirements? I thought in defining a fixture where the user can override to customize database initialization.

What do you need to use alembic to initialize the DB? The SQLAlchemy engine or the database URL string would be enough?

Example of setting up a database using Alembic