Search
Star
Feedback
Setup for Free
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
how to use ilike securely? - Drizzle Team
DT
Drizzle Team
•
3y ago
•
4 replies
Tim
how to use ilike securely?
ilike
(table
, sql
%${userQuery}%
%${userQuery}%
) produces the wrong SQL code by adding quotes around the userQuery text
. however we can
't use sql
.raw as it would make this suceptible to sql injection
. how can we interpolate user provided for ilike
? Thx
Drizzle Team
Join
The official Discord for all Drizzle related projects, such as Drizzle ORM, Drizzle Kit, Drizzle Studio and more!
11,879
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
`ilike` in sqlite
DT
Drizzle Team / help
2y ago
ilike drizzle postgress
DT
Drizzle Team / help
2y ago
Is ilike vulnerable to SQL injections?
DT
Drizzle Team / help
3y ago
How can i implement ilike in sqlite?
DT
Drizzle Team / help
2y ago