Chris Withers wrote:
> Michael Bayer wrote:
>> we have the in_() construct.  It should be in the ORM and SQL expression
>> tutorials:
>>
>> t1 = Table('mytable', metadata, Column('foo', String))
>>
>> select([t1]).where(t1.c.foo.in_(['a', 'b', 'c']))
>
> However, that requires table/column objects which I don't have.
>
> Are the innards of in_ exposed anywhere for public consumption or should
> I avoid?

from sqlalchemy.sql import column

column("anything_you_want").in_(['a', 'b', 'c'])





>
> Chris
>
> --
> You received this message because you are subscribed to the Google Groups
> "sqlalchemy" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/sqlalchemy?hl=en.
>
>

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

Reply via email to