FastUI & SQLModel - Database integration in a FastUI Application

Publié le: 30 décembre 2023
sur la chaîne: BugBytes
10,322
235

Starter Code: https://github.com/bugbytes-io/fastui...

In this video, we'll add a relational database to the sample FastUI application that was built in the previous video.

We'll show how to use SQLModel to integrate and communicate with the database, and to model our data for the database tables. This video will demonstrate the seamless transition from normal Pydantic model classes to SQLModel classes in a FastUI application.

We'll see some cool auxiliary features such as FastAPI's lifespan events in this video.

☕️ 𝗕𝘂𝘆 𝗺𝗲 𝗮 𝗰𝗼𝗳𝗳𝗲𝗲:
To support the channel and encourage new videos, please consider buying me a coffee here:
https://ko-fi.com/bugbytes

📌 𝗖𝗵𝗮𝗽𝘁𝗲𝗿𝘀:
00:00 Intro
01:44 SQLModel intro
04:00 Creating SQLModel model class
07:10 Populating Database with FastAPI Lifespan Event
13:37 Fetching users from database on list page
15:54 Fetching single user from database on user info page
18:34 Adding new user to database on form submit page
22:15 Deleting users from application

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

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

#python #webdevelopment #fastapi #pydantic #sqlite


Sur cette page du site, vous pouvez voir la vidéo en ligne FastUI & SQLModel - Database integration in a FastUI Application durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur BugBytes 30 décembre 2023, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 10,322 fois et il a aimé 235 téléspectateurs. Bon visionnage!