Skip to content

gordthompson/fastapi-tutorial-mssql

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fastapi-tutorial-mssql

The FastAPI SQL database tutorial modified to use mssql+pyodbc.

Proof-of-concept that using FastAPI with mssql does not require aioodbc and async def for path operation functions.

How to run:

To launch uvicorn:

uvicorn sql_app.main:app --reload

Then load the fancy interactive docs page at

http://localhost:8000/docs

Details at

https://fastapi.tiangolo.com/tutorial/

and

https://fastapi.tiangolo.com/tutorial/sql-databases/

GitHub discussion:

sqlalchemy/sqlalchemy#6521

Notes:

  • You may need to tweak SQLALCHEMY_DATABASE_URL in database.py to connect to your SQL Server instance.

About

FastAPI SQL database tutorial using mssql+pyodbc

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages