Hi,
I've written a session transcript to init db tables and add objects (well, rows) to the tables. The issue I'm currently facing is how to make the "creating and populating the tables" section of the script a no-op when the objects exist. If the tables already exist sqlalchemy does nothing, which is fine. However, this script currently does try to add the objects that are already there, and so throws an exception. I suppose the thing to do would be to check for each object whether it already exists in the db, and do nothing if so. What would be the simplest/cleanest way to do so? I've been fiddling with this for a while without finding an obviously good solution. Is it possible to check whether an "object" is already in a specific table? Please CC me on any reply. Thanks, Faheem. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---