Search
Get Started
DT
Drizzle Team
•
2y ago
ciscoheat
Using parameter in LIKE
Is it safe to pass a string directly into a like condition
, or does it have to be quoted or parameterized somehow
?
where(like(entries.text, `%${filters.search}%`))
where(like(entries.text, `%${filters.search}%`))
Drizzle Team
Join
The official Discord for all Drizzle related projects, such as Drizzle ORM, Drizzle Kit, Drizzle Studio and more!
11,794
Members
View on Discord
Similar Threads
Was this page helpful?
Yes
No
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
where
(
like
(entries.text,
`%${
filters
.
search
}%`
))
where
(
like
(entries.text,
`%${
filters
.
search
}%`
))
Similar Threads
Using transactions in automated testing like Jest
DT
Drizzle Team / help
3y ago
How do I configure SSL mode without using the connectionString parameter
DT
Drizzle Team / help
3y ago
pushSQLiteSchema with force parameter?
DT
Drizzle Team / help
5mo ago
helper function parameter type
DT
Drizzle Team / help
2y ago