RE: [SQLObject] How to insert a row from dictionary
SQLObject is a Python ORM.
Brought to you by:
ianbicking,
phd
From: Ahmed M. A. <ahm...@wa...> - 2004-08-30 09:12:31
|
Try: myTable.new(**myDict) -----Message d'origine----- De : sql...@li... [mailto:sql...@li...]De la part de MJR Envoyé : lundi 30 août 2004 10:50 À : sql...@li... Objet : [SQLObject] How to insert a row from dictionary I am wondering whether ther is a simple way to insert a row from dictionary where keys are columns. Something like: myDict={'col1': val1, 'col2':val2} myTable.new(myDict) instead of myTable.new(col1=val1, col2=val2) tx, mike ------------------------------------------------------- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click _______________________________________________ sqlobject-discuss mailing list sql...@li... https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss |