FWIW, another option is to pull in all the addresses and use a class method 
to filter.

    class User():
         def all_emails_like(self, expression):
               return [e for e in self.all_emails if 
regex_match(expression, e)]

I've found that depending on your app/db and the size of `.all_emails`, 
shifting the performance to python can be negligible or even faster.

-- 
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sqlalchemy.
For more options, visit https://groups.google.com/d/optout.

Reply via email to