Skip to content

Please support latest SQLAlchemy or pin it #2996

Closed

Description

@samuelcolvin

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 SQLAlchemy==1.3.23

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.

Activity

  1. Kludex commented on Mar 26, 2021

    @Kludex
    Member

    @samuelcolvin This comes from encode/databases. @PrettyWood created a PR there: encode/databases#299

    If this is not solved, @tiangolo will probably fix this in the next weeks.

  2. PrettyWood commented on Mar 26, 2021

    @PrettyWood
    Contributor
  3. gjask commented on Apr 12, 2021

    @gjask

    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

  4. rinckd commented on Jun 26, 2021

    @rinckd

    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.
    image

  5. locked and limited conversation to collaborators on Feb 28, 2023
  6. converted this issue into a discussion #9030 on Feb 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions