On Thu, May 25, 2006 at 11:23:56AM +0100, Fadhley, Salim (FID) wrote:
> Is there any documentation for sqlbuilder.Insert()?

   Not much.

> Actually, I found some example code at the bottom of the sqlbuilder.py
> file:
> 
> (Pdb) kk = sqlobject.sqlbuilder.Insert( tt,[ {'name':'foo'},
> {'name':'ddd'}] )
> (Pdb) kk
> <Insert 1f18f80>
> (Pdb)
> 
> The question is, what do I do with this insert object? How do I throw
> that into my databse connection? How do I view that object's SQL?

   connection.query(connection.sqlrepr(Insert("my_table", {name: value})))

Oleg.
-- 
     Oleg Broytmann            http://phd.pp.ru/            [EMAIL PROTECTED]
           Programmers don't die, they just GOSUB without RETURN.


-------------------------------------------------------
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
_______________________________________________
sqlobject-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss

Reply via email to