2008/8/27 Cecil Westerhof <[EMAIL PROTECTED]>: > At this moment I am not working with update and delete. (Just started > trying to implement something with sqlalchemy.) But when people would > like to know how I am going to solve that, I can post that at the > moment I am using those. (I could use sa.delete and sa.update, but I > suppose it would be better to use session as I do with insert.)
I defined a dummy table to test updates and deletes. It works, the way I do it: for updates: ##### dummy = session.query(Dummy).get(1) dummy.tekst = 'andere tekst' session.commit() ##### for deletes: ##### dummy = session.query(Dummy).get(1) session.delete(dummy) session.commit() ##### Quite straigt forward. -- Cecil Westerhof --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To post to this group, send email to sqlalchemy@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sqlalchemy?hl=en -~----------~----~----~----~------~----~------~--~---