Chrome Extension

Like query Sqlalchemy

Like query in Sqlalchemy can be used to find records that have specific keywords based on the query.
#record has 'test' keyword on any position
session.query(User).filter(User.first_name.like('%test%')).all()

#record has 'test' keyword on first position
session.query(User).filter(User.first_name.like('test%')).all()

#record has 'test' keyword on last position
session.query(User).filter(User.first_name.like('%test')).all()
Best JSON Validator, JSON Tree Viewer, JSON Beautifier at same place. Check how cool is the tool
Was this helpful?
0 Comments