the hybrid method itself refers to those columns.   you can put any SQL
/ Python expression you want inside the hybrid.

There's an early intro to the hybrid concept at
http://techspot.zzzeek.org/2011/10/21/hybrids-and-value-agnostic-types/
which shows some examples like this.



On 12/14/2015 09:48 PM, ThereMichael wrote:
> Great. It's clear how I'd refer to additional columns with composites, but
> how would I pass / indicate additional columns with hybrids?
> 
> Thanks!
> 
> 
>  
> 
>     OK that's a Python function, plus some key in the table itself?
> 
>     You could take the hybrid example and just refer to both columns in the
>     hybrid functions.   Or you might like to use a composite type which has
>     a lot of functional overlap with hybrids:
>     
> http://docs.sqlalchemy.org/en/rel_1_0/orm/composites.html?highlight=composite#mapper-composite
>     
> <http://docs.sqlalchemy.org/en/rel_1_0/orm/composites.html?highlight=composite#mapper-composite>
> 
> 
> 
>  
> 
> -- 
> You received this message because you are subscribed to the Google
> Groups "sqlalchemy" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to sqlalchemy+unsubscr...@googlegroups.com
> <mailto:sqlalchemy+unsubscr...@googlegroups.com>.
> To post to this group, send email to sqlalchemy@googlegroups.com
> <mailto:sqlalchemy@googlegroups.com>.
> Visit this group at https://groups.google.com/group/sqlalchemy.
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sqlalchemy+unsubscr...@googlegroups.com.
To post to this group, send email to sqlalchemy@googlegroups.com.
Visit this group at https://groups.google.com/group/sqlalchemy.
For more options, visit https://groups.google.com/d/optout.

Reply via email to