Categories
Peewee. How to write a query with LIKE?
There is such a query in SQL SELECT * FROM Table WHERE Name LIKE '%test%' Peewee ORM did not find how to write such a query. Is this possible or should I use raw?
SELECT * FROM Table WHERE Name LIKE '%test%'
Answer the question
In order to leave comments, you need to log in
docs.peewee-orm.com/en/latest/peewee/querying.html contains Blog.select().where(Blog.title.contains(search_string))
Didn't find what you were looking for?
Ask a Question
731 491 924 answers to any question