FastAPI & SQLModel - Database Interaction in FastAPI apps with SQLModel

Veröffentlicht am: 28 März 2024
auf dem Kanal: BugBytes
9,740
308

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:    • FastAPI - Complete Course for Python ...  

☕️ 𝗕𝘂𝘆 𝗺𝗲 𝗮 𝗰𝗼𝗳𝗳𝗲𝗲:
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:
   • FastAPI - Complete Course for Python ...  

𝗦𝗼𝗰𝗶𝗮𝗹 𝗠𝗲𝗱𝗶𝗮:
📖 Blog: https://bugbytes.io/posts/
👾 Github: https://github.com/bugbytes-io/
🐦 Twitter:   / bugbytesio  

📚 𝗙𝘂𝗿𝘁𝗵𝗲𝗿 𝗿𝗲𝗮𝗱𝗶𝗻𝗴 𝗮𝗻𝗱 𝗶𝗻𝗳𝗼𝗿𝗺𝗮𝘁𝗶𝗼𝗻:
SQLModel: https://sqlmodel.tiangolo.com/
FastAPI Lifespan Event: https://fastapi.tiangolo.com/advanced...

#python #fastapi #webdevelopment


Auf dieser Seite können Sie das Online-Video FastAPI & SQLModel - Database Interaction in FastAPI apps with SQLModel mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer BugBytes 28 März 2024 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 9,740 Mal angesehen und es wurde von 308 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!