Please support latest SQLAlchemy or pin it #9030
-
Hi @tiangolo, fastapi tests are currently failing and therefore causing pydantic tests to fail. See pydantic/pydantic#2584, fastapi is not compatible with the v1.4 of SQLAlchemy which was released earlier in March, I've had to pin to Please could we fix fastapi (the incompatibility looks like it might be trivial) or pin the dependency? Once master of fastapi is fixed, we'll need to remember to also remove the hack from pydantic. |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments
-
@samuelcolvin This comes from If this is not solved, @tiangolo will probably fix this in the next weeks. |
Beta Was this translation helpful? Give feedback.
-
https://github.com/encode/databases/releases/tag/0.4.3 is out! @samuelcolvin No need for your fix anymore! |
Beta Was this translation helpful? Give feedback.
-
Also it seems to me, that SQLAlchemy 1.4 has started to support async for its ORM. It would be great to have it available in fastapi. https://docs.sqlalchemy.org/en/14/orm/extensions/asyncio.html#synopsis-orm |
Beta Was this translation helpful? Give feedback.
-
Is the use of
|
Beta Was this translation helpful? Give feedback.
-
Michael Kennedy goes over async SQLAlchemy with FastAPI in one of his latest courses: https://github.com/talkpython/web-applications-with-fastapi-course/tree/main/code/ch8-async-databases It's definitely interesting to play around with, but the SQLAlchemy asyncio extension is still considered beta software until the 2.0 release. |
Beta Was this translation helpful? Give feedback.
https://github.com/encode/databases/releases/tag/0.4.3 is out! @samuelcolvin No need for your fix anymore!