node5585
DTDrizzle Team
•Created by node5585 on 5/19/2024 in #help
How to create indexes on expressions
I'm wanting to create a unique index with an expression to truncate a timestamp to minutes using postgresql's
date_trunc
. I'm unsure how to go about doing this with the drizzle orm core utilities.
https://www.postgresql.org/docs/current/indexes-expressional.html
https://orm.drizzle.team/docs/indexes-constraints#indexes2 replies