G
G
gadzhi152017-10-17 18:21:15
Python
gadzhi15, 2017-10-17 18:21:15

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?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
planc, 2017-10-17
@gadzhi15

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 your question

Ask a Question

731 491 924 answers to any question