SQLAlchemy

Python ORM commonly used with Flask.

Using Python enums in SQLAlchemy models

May 16th, 2018 in SQLAlchemy | MySQL | Python

How to use enums in your models to enforce value consistency.

Bash script to relink alembic migrations

Sick of `alembic merge heads` slowing down your builds? Here's a short bash script I wrote to rename your migration files and update its down revision.