r/FastAPI • • Jan 21 '22

Question Microsoft SQL Server

Will Microsoft SQL Server ever be integrated into fastapi?

0 Upvotes

5 comments sorted by

View all comments

12

u/Vok250 Jan 21 '22

You can use any database with FastAPI. It's just a web framework. You don't have to use the same ORMs shown in the tutorials.

FastAPI works with any database and any style of library to talk to the database.

A common pattern is to use an "ORM": an "object-relational mapping" library.

Direct quote from the docs here: https://fastapi.tiangolo.com/tutorial/sql-databases/

Just use something like this: https://pypi.org/project/pymssql/