Some work with FastAPI and SQLAlchemy, including automated alembic migrations
 
 

596 B

Table of Contents

Requirements

  • FastAPI
  • alembic
  • SQLAlchemy
  • uvicorn

Alembic Database Migrations / Upgrades

alembic upgrade head                            # Upgrade/create database
alembic revision --autogenerate -m "My comment" # Commit/Create new migration script for database changes

Running the Server

uvicorn app.main:app --reload