In this video tutorial we will setup the project using the fastapi-starter-kit and then we will create the models using the SQLAlchemy.
I will also walk you though the installing and configuring the Alembic to use the SQLAlchemy model for generating the migrations.
After configuration, we will execute the migration command and we will verify the table in MySQL database.
We will also learn what happens when you change (add or remove etc) any fields for the model that you have already generated the migration for. How to generate the migration for field change etc.
And in the end we will check how can we drop the entire database table using single command.
FastAPI-Starter-Kit project: https://github.com/Describly/fastapi-...
Final Project: https://github.com/Describly/fastapi-...
I will encourage you to start with the starter-kit project and then follow me along. This will you will learn every bit.
Sur cette page du site, vous pouvez voir la vidéo en ligne FastAPI (Python Framework) - Auto-Generating Migrations with Alembic & SQLAlchemy durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur Describly 06 octobre 2023, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 5,229 fois et il a aimé 103 téléspectateurs. Bon visionnage!