> what is the common pattern to duplicate a row?
> [...] What's the common way to do that?
I personnally do this as following (don't know if it's the common pattern):
# row is a RowProxy object from a table.select(blabla)
type(row)
=> <class 'sqlalchemy.engine.base.RowProxy'>
mytable.insert(dict(row.items())).execute()
Hope that helps
Seb
--
Sébastien LELONG
http://sirloon.net
sebastien.lelong[at]sirloon.net
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---