Python FastAPI Tutorial: How to Connect FastAPI to Database

Eric Roby February 3, 2022
Video Thumbnail
Eric Roby Logo

Eric Roby

View Channel

About

Backend and AI programming in a nutshell. I make learning tech fun and easy! I answer YOUR How To questions. You will get tips, how to, learn to code and be able to create your own coding projects - all in a simple explanation to help you learn and grow! Big fan of Python & FastAPI Cheers! #codingwithroby #coding #python

Video Description

In this Python video tutorial, you will dive into how to connect a SQLite database to FastAPI, a web framework for developing modern RESTful APIs using Python. Let's set up your FastAPI application to now work with a database so you can save items. Download SQLite Video: https://youtu.be/2CAspm7YwTU 🎓 Check these out 🎓 =========================================== ✔️ Subscribe to Codingwithroby : https://www.youtube.com/channel/UCFxwS8HIGH5_ut1fk0PNAHw?sub_confirmation=1 🎓 Courses can be found: FastAPI Beginner & Advanced: https://www.udemy.com/course/fastapi-the-complete-course/?referralCode=4F4A35C1A243D23A1A59 Learn Chatbot Development: https://www.udemy.com/course/the-complete-chatbot-bootcamp/?referralCode=2654798EE9F9998023B9 💻 GitHub Repo 💻 * Follow README to get started * https://www.codingwithroby.io/get-repo/Youtube-FastAPI-Part2 ⭐ Timestamps ⭐ =========================================== 00:00 - Intro 00:25 - Recap 02:37 - Install SQLAlchemy 03:10 - Update database settings file 06:34 - Update models and table of database 12:22 - Dependency Injection 14:00 - Create new Book for database 17:53 - Update new Book for database 23:00 - Delete Book from database ⭐️ Hashtags ⭐️ #codingwithroby #FastAPITutorial #PythonDatabase

Essential Travel Camera Gear

AI-recommended products based on this video