On Oct 21, 2007, at 7:20 PM, iain duncan wrote:

>
> On Sun, 2007-21-10 at 17:12 -0400, Michael Bayer wrote:
>>
>> On Oct 21, 2007, at 4:36 PM, Paul Johnston wrote:
>>
>>>
>>> Hi,
>>>
>>>> Resource.select_by( foo="bar" )
>>>>
>>>>
>>> Untested, but I reckon this will work:
>>>
>>> Resource.query.filter(Resource.foo.op('rlike')('bar'))
>>>
>>
>> might need to call op() off the Table instance for now, might not
>> have added op() to the class-based properties....
>
> Excuse what may be a stupid question, but is this for both 0.3 and 0.4
> or just the new stuff? ( I know, I gotta upgrade soon now! )
>

you can say query.filter(sometable.c.somecolumn.op('rlike')('bar'))  
in any 0.3 or 0.4 version.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To post to this group, send email to sqlalchemy@googlegroups.com
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