Hi, this is probably a basic question, but I'm a little fuzzy on the
best approach.

Is there a way to retrieve OR create an object with just one call? It
seems like I'm always doing the same pattern:

1. Look in table for existing record
2. return object if already exists
3. create and new object if it doesn't exist

It'd be nice if Query() could look for an object and return it, or
return a new instance if it doesn't find it.

Perhaps this is too much of a short cut...

Jim
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To post to this group, send email to [email protected]
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to