On 9/19/07, Aaron Swartz <[EMAIL PROTECTED]> wrote:
>
>
> > web.multiple_insert('table_name', names=("col1", "col2"),
> > values=[{"col1":"val1","col2: "val2"}, {"col1":"val3", "col2":"val4"}])
>
> web.multiple_insert('table_name', values=[{"col1":"val1","col2:
> "val2"}, {"col1":"val3", "col2":"val4"}])
>
> Let's think about how people might use this statement. The most
> obvious is for something like importing a CSV file into a DB. Perhaps both
> could be permitted?



my case is when i am lazily inserting into DB  and i have a list of
dictionaries that needs to go into the db. and what aaron has here would be
great. Or even better if both will be supported!

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web.py" 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/webpy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to