Skip to content

Recommended way to use FastAPI with SQL Server 2019 #2383

@jdelabr

Description

@jdelabr

Hello,

we've been having some really good fun using FastAPI, so congratulations to the community on delivering such a marvel.
Issue is we use pyodbc DBAPI to connecto to MS SQL Server 2019 and that's not possible to make any async calls from what I understand. So we end up seeing our users queued and sometimes even get timeouts.

Do you know if there are ways to use SQL server in FastAPI? The thread below does not seem to mention it.
https://fastapi.tiangolo.com/advanced/async-sql-databases/
I cannot really find any clue on what DBAPI to use so fearing that may not be supported.

Thank you in advance for the help!

Julien

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