Open hardbyte opened 6 years ago
I will vote for sqlalchemy, if only because Alembic has been so useful for me in other projects!
This is partially done - sqlalchemy and alembic are used to create and migrate the database. However we are not using the ORM in the main codebase.
I quite like the look of peewee although SqlAlchemy is the standard.
For example we would define
models
for our tables:We can then create tables:
Our database queries change to ORM code - example from the docs: