On Aug 25, 12:01 am, Fernando Takai <fernando.ta...@gmail.com> wrote: > Have you tried: > > > #delete the fred user... > > name_to_delete = "fred" > > s2 = Session() > > s2.query(User).filter_by(name = name_to_delete).delete() > > s2.commit() > > ?
No I had not... :( That works absolutely perfectly, though with just enough SQL. Thanks! I clearly need to get my head wrapped more around how sqla querying works. That is not yet intuitive to me how that works inside. I likely have examples like that (doing a full SELECT prior to what I actually want to do) peppered throughout my code. -- You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To post to this group, send email to sqlalch...@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.