P.S. In my first attempt, I used the ORM like this sess = DbSession() entity = sess.query(Role).filter(Role.id==id).one() sess.delete(entity) sess.flush()
This had worked well. But this way the record first is selected before it is deleted, which I'd liked to eliminate. -- You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To view this discussion on the web visit https://groups.google.com/d/msg/sqlalchemy/-/ZUIkTY6akqoJ. To post to this group, send email to sqlalchemy@googlegroups.com. To unsubscribe from this group, send email to sqlalchemy+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/sqlalchemy?hl=en.