On Jun 26, 2007, at 4:51 PM, Rick Morrison wrote:
> Updates and inserts on the ORM side of the street are single-object
> kinds of things. The pattern is to load a list of objects, make the
> appropriate modifications to the those in-memory objects, and then
> issue a session flush().
>
> This type of bulk operation is best done with the SQL generation
> portion of the library, like so (using an implicit bound connection
> here):
>
> users.update(users.c.group == contractor).execute({users.c.group
> = consultant})
>
using the actual execution terminology i made up ! nice
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---