Davepar
DTDrizzle Team
•Created by rgripper on 2/16/2024 in #help
Force parameter to be of certain type
This is how I defined a custom type that converts Postgres timestamp to Temporal.PlainDateTime:
All timestamps in my db are UTC, so I don't store timezone. It's working great so far, but notice the hack to get around a bug in Drizzle Studio. It seems to always convert db timestamps to js Date type.
2 replies