© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Search
Star
Feedback
Setup for Free
DT
Drizzle Team
•
2y ago
Rohanisburg
Functional Indexes
So working with PlanetScale and have a query that checks for LOWER
(city
) and LOWER
(state
) to handle user input
. How can I use Drizzle
-orm to create the composite functional index
. I
've tried a bunch of variations like the below but no luck
.
stateCityIdx
: index
(
"state
_city
_idx
"
)
.on
(
sql
(LOWER(${table.city}) LOWER(${table.state}))
(LOWER(${table.city}) LOWER(${table.state}))
,
)
,
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
Recent Announcements
Similar Threads
Find needed indexes
DT
Drizzle Team / help
2y ago
indexes with pgTable deprecated
DT
Drizzle Team / help
15mo ago
postgres schema indexes INCLUDE
DT
Drizzle Team / help
2y ago
drizzle migration shows 0 indexes
DT
Drizzle Team / help
3y ago