[sqlalchemy] Re: accessing fields by name

2008-06-25 Thread Werner F. Bruhin
Alex, alex bodnaru wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 hello friends, as opposed to a table.query() that returns a list of records of that table, with fields accessible as record attributes, a select() statement returns a list of tuples with the values of the fields

[sqlalchemy] Re: accessing fields by name

2008-06-25 Thread az
AFAIK non-orm queries yield RowProxies, which are sort of ordered dicts, i.e. can be used as sequences or as dicts, keyed by column-name or by column-object itself. class RowProxy(object): Proxy a single cursor row for a parent ResultProxy. Mostly follows ordered dictionary behavior,

[sqlalchemy] Re: accessing fields by name

2008-06-25 Thread alex bodnaru
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 thanks werner, but i was asking about a generic query (not about one table) alex Werner F. Bruhin wrote: | Alex, | | alex bodnaru wrote: | -BEGIN PGP SIGNED MESSAGE- | Hash: SHA1 | | | hello friends, | | as opposed to a table.query() that

[sqlalchemy] Re: accessing fields by name

2008-06-25 Thread alex bodnaru
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 thanks a lot, it realy works :) [EMAIL PROTECTED] wrote: | AFAIK non-orm queries yield RowProxies, which are sort of ordered | dicts, i.e. can be used as sequences or as dicts, keyed by | column-name or by column-object itself. | | class