Alembic — Quick Reference
What Is Alembic?
Alembic is Prisma Migrate for Python/SQLAlchemy. You change your models → Alembic generates the SQL → you apply it to the DB.
The core problem it solves: your Python model changed, but the real database has no idea. Alembic bridges that gap with versioned, reproducible migration files.
Direct Mapping — Prisma / Drizzle vs Alembic
| Concept | Prisma | Drizzle | Alembic |
|---|---|---|---|
| Define schema |