Start here
The safe first move
Build the update statement first, then chain .where(expr) and .values({...}) on it.
Stop before automation when: Helper wrappers that compute where clauses indirectly. Generated code where the update call is assembled dynamically.
Target shape
stmt = (
update(user_table)
.where(user_table.c.id == user_id)
.values({"name": name})
)