On Sun, Aug 20, 2006 at 03:00:17PM +0200, Arnaud Fontaine wrote:
> Thanks a lot. Last question: is there a way to have a dict with column
> name as key directly instead of a tuple?
Only with .select() - there is a method sqlmeta.asDict() - because
sqlmeta knows the names and the order of the columns. sqlbuilder.Select()
knows the names but the names could collide:
Select([Table1.q.name, Table2.q.name]) - what keys you would want in the
dictionary?
And when you run connection.query() (or .queryAll) Select has been
forgotten already - there is only a query string, so Select cannot build
the dictionary.
Oleg.
--
Oleg Broytmann http://phd.pp.ru/ [EMAIL PROTECTED]
Programmers don't die, they just GOSUB without RETURN.
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
sqlobject-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss