Quantcast
Channel: Regular expressions in SQLalchemy queries? - Stack Overflow
Viewing all articles
Browse latest Browse all 6

Regular expressions in SQLalchemy queries?

$
0
0

Is it possible to use a regex in a way similar to session.query(MyObject).filter_by(REGEX)?

If not, how can I use sqlAlchemy to retrieve records that have a varchar PK beginning with a certain value (e.g. all those whose city field begins with "SA")? Thanks.


Viewing all articles
Browse latest Browse all 6

Latest Images

Trending Articles





Latest Images