How to use "icontains" in queries #1035
-
Hi! I'm continue converting to Piccolo ORM. I can't find way to use SQL "contains" closure. How can I do it? I want to filter by part of a string. I want to do something like:
I guess I can use:
but maybe there is a different way of achieving contains? |
Beta Was this translation helpful? Give feedback.
Answered by
dantownsend
Jun 21, 2024
Replies: 1 comment 2 replies
-
Are you using SQLite or Postgres? |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
przwr
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Are you using SQLite or Postgres?
like
andilike
are probably your best option. I'm not sure if Postgres hascontains
. If it does, then you could useWhereRaw
to access it.