This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" Quick example showing how to do a bulk update into the database | |
using SQLAlchemy, without interacting heavily with the ORM. | |
""" | |
from sqlalchemy.sql.expression import bindparam | |
stmt = addresses.update().\ | |
where(addresses.c.id == bindparam('_id')).\ | |
values({ | |
'user_id': bindparam('user_id'), | |
'email_address': bindparam('email_address'), |