MENU

Fun & Interesting

FastAPI & SQLModel - Database Interaction in FastAPI apps with SQLModel

BugBytes 18,274 1 year ago
Video Not Working? Fix It Now

In this video, we refactor the Pydantic models from the previous video into SQLModel classes that can interact with our database and define the schema of our tables. We'll see how to re-write our FastAPI handler functions to use this database. ▶️ Playlist: https://www.youtube.com/playlist?list=PL-2EBeDYMIbQghmnb865lpdmYyWU3I5F1 ☕️ ??? ?? ? ??????: To support the channel and encourage new videos, please consider buying me a coffee here: https://ko-fi.com/bugbytes ? ????????: 00:00 Intro 00:35 SQLModel intro 05:18 Create relationships between SQLModel classes 08:18 Creating database connection 13:04 Using database in FastAPI handler functions ▶️ Full Playlist: https://www.youtube.com/playlist?list=PL-2EBeDYMIbQghmnb865lpdmYyWU3I5F1 ?????? ?????: ? Blog: https://bugbytes.io/posts/ ? Github: https://github.com/bugbytes-io/ ? Twitter: https://twitter.com/bugbytesio ? ??????? ??????? ??? ???????????: SQLModel: https://sqlmodel.tiangolo.com/ FastAPI Lifespan Event: https://fastapi.tiangolo.com/advanced/events/ #python #fastapi #webdevelopment

Comment