Перейти к содержимому

FastAPI Full Course Episode 9 - Database Setup with PostgreSQL and SQLAlchemy

Epython Lab

0:00 / 0:00

FastAPI Full Course Episode 9 - Database Setup with PostgreSQL and SQLAlchemy

342 просмотра · 3 нед. назад
Epython Lab
22,6 тыс. подписчиков
342 просмотра · 3 нед. назад
This is episode 9 of the FastAPI full course tutorial series. In the previous episodes, we separated our document routes from main.py and introduced Pydantic for request and response validation. There is one important piece still missing. Our POST /documents endpoint accepts a document, but the data is not stored anywhere permanently. If the application restarts, that document is gone. In this episode, we'll connect the application to PostgreSQL and set up SQLAlchemy. We will create the database configuration, define our first database model, create the documents table, and connect a database session to our document router. #fastapi #ai #agent #database #aidocumentapi 💡 Support Us and Stay Connected! 🌟 Exclusive Access: Join our channel for premium content and resources:   / @epythonlab  . 💬 Join Our Discussion Groups: 📱 Telegram: https://epythonlab.t.me/ 🌐 Facebook:   / epythonlab1   ✨ We Look Forward to Seeing You Again! ✨