On Wed, 2007-10-10 at 16:41 -0700, jason kirtland wrote:
> Jim Musil wrote:
> > I don't see support for RLIKE, NOT RLIKE, or REGEXP anywhere.
> >
> > Is there support for this?
>
> Yes, you can use these operators and any others via the .op() method:
>
> table.c.col1.op('rlike')('re')
> not_(table.c.col1.op('rlike')('re'))
> table.c.col1.op('regexp')('re')
Is it possible to use them with the ORM too? Or am I misunderstanding
the above? If someone has the time to post an example of how one would
do an rlike version of
Resource.select_by( foo="bar" )
I'd love to see it.
Thanks
Iain
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---