Re: [sqlalchemy] postgres "similar to" in sqlalchemy expressions

2015-12-11 Thread Mike Bayer
yes, if you were feeling enthusiastic you could make your own operators:

http://docs.sqlalchemy.org/en/rel_1_0/core/custom_types.html#redefining-and-creating-new-operators



On 12/11/2015 07:53 AM, Chris Withers wrote:
> Hi All,
> 
> Just wanted to double check, is this still the best way to do this:
> 
> https://groups.google.com/forum/#!topic/sqlalchemy/6kZaWeqTpHA
> 
> foo.op("SIMILAR TO")(bar)
> 
> cheers,
> 
> Chris
> 
> -- 
> 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 http://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 http://groups.google.com/group/sqlalchemy.
For more options, visit https://groups.google.com/d/optout.


[sqlalchemy] postgres "similar to" in sqlalchemy expressions

2015-12-11 Thread Chris Withers

  
  
Hi All,

Just wanted to double check, is this still the best way to do this:

https://groups.google.com/forum/#!topic/sqlalchemy/6kZaWeqTpHA


foo.op("SIMILAR
  TO")(bar)

cheers,

Chris
  




-- 
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 http://groups.google.com/group/sqlalchemy.
For more options, visit https://groups.google.com/d/optout.