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
On this page of the site you can watch the video online FastUI & SQLModel - Database integration in a FastUI Application with a duration of hours minute second in good quality, which was uploaded by the user BugBytes 30 December 2023, share the link with friends and acquaintances, this video has already been watched 10,322 times on youtube and it was liked by 235 viewers. Enjoy your viewing!