Suppose I have table tags which has a field count that indicates how many items have been tagged with the given tag.
How do I increase this counter in SQLAlchemy after I add a new item with an existing tag?
With plain SQL I would do the following:
INSERT INTO `items` VALUES (...)
UPDATE `tags` SET count=count+1 WHERE tag_id=5
But how do I express count=count+1 in SQLAlchemy?