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 <conor.edward.da...@gmail.com> 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
> be something like:
>
> sel = select([func.function_name(table.c.column_name).label('c1'), 
> from_obj=table).alias('some_alias')
>
> Not sure if the alias part is needed.
>
> -Conor

-- 
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To post to this group, send email to sqlalch...@googlegroups.com.
To unsubscribe from this group, send email to 
sqlalchemy+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sqlalchemy?hl=en.

Reply via email to