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.
In questa pagina del sito puoi guardare il video online FastAPI (Python Framework) - Auto-Generating Migrations with Alembic & SQLAlchemy della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Describly 06 ottobre 2023, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 5,229 volte e gli è piaciuto 103 spettatori. Buona visione!