SQLAlchemy and Alembic 2 · Updating and raw SQL
Update an object
Change attributes on a loaded object and commit; SQLAlchemy tracks the change.
user = session.get(User, 1)
user.email = "[email protected]"
session.commit()
Official SQLAlchemy and Alembic 2 documentation
More updating and raw sql commands
All updating and raw sql commands · SQLAlchemy and Alembic 2 cheatsheet