how to pass a not like operator in a sqlalchemy ORM query
Just negate the filter:
MyModel.query.filter(sqlalchemy.not_(Mymodel.name.contains('a_string')))
There is now a notlike()
method. Couldn't find it in the docs but it exists!
MyModel.query.filter(Mymodel.name.notlike('%a_string%'))