[sqlalchemy] Re: Newbie mapper question

2010-04-13 Thread Damien Tougas
Hello Connor, That worked great! Thanks for the tip, it makes sense to me now why you would do it that way. On Apr 7, 5:13 pm, Conor wrote: > Seehttp://www.sqlalchemy.org/docs/05/mappers.html#mapping-a-class-agains... > for an example for mapping to arbitrary selects. In your case, it would > b

[sqlalchemy] Newbie mapper question

2010-04-07 Thread Damien Tougas
Hello, I am new at this, so I am sure that this is easy. I understand how the mapper works, and I can get it working fine when mapping tables to classes. What I need to do is map the following select statement to a class: SELECT function_name(column_name) AS c1 FROM table_name The usage of the f