Im trying to construct a query using SQLAlchemy which produces something like (in oracle):
select * from users u where 'john' like u.name || '%'
to get names like 'j', 'jo', 'joh' etc.
I suppose there'a something like:
session.query(Users).filter(XXX('john').like(Users.name + '%')).all()
What should I replace XXX with?