SQLAlchemy and Alembic Support #130
-
Hello! I work a lot with Flask and I love its easy integration with SQLAlchemy and Alembic. Are there any future plans to integrate those or any other ORM/Migration packages with Blacksheep? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Hi @Red-Hammer! I propose to do this way:
Would you have time for that? |
Beta Was this translation helpful? Give feedback.
-
For the record, and to better answer the original question, yes I am definitely going to prepare a library to integrate with SQLAlchemy. Integration with Alembic is not necessary in my opinion because the At a basic level, the integration with SQLAlchemy will enable the following:
|
Beta Was this translation helpful? Give feedback.
For the record, and to better answer the original question, yes I am definitely going to prepare a library to integrate with SQLAlchemy. Integration with Alembic is not necessary in my opinion because the
alembic
CLI already provides everything needed to handle migrations, which by the way should be handled in CD pipelines and not by the application server - the application server shouldn't even have access to a connection string with sufficient privileges to run DB migrations in the first place! Side note: I am also working on a demo project that applies db migrations using GitHub Actions, see Venezia.At a basic level, the integration with SQLAlchemy will enable the following: