johtso
Explore posts from serversDTDrizzle Team
•Created by Simon on 6/11/2024 in #help
Drizzle with Zod throws type errors with simple `numeric` example
I'm not really using effect schema with drizzle. I think I'm just not using the zod schema at all, instead just explicitly passing the relevant key/values as the values argument in my query..
14 replies
DTDrizzle Team
•Created by Simon on 6/11/2024 in #help
Drizzle with Zod throws type errors with simple `numeric` example
ahh.. I think it's exactOptionalPropertyTypes in tsconfig
14 replies
DTDrizzle Team
•Created by Simon on 6/11/2024 in #help
Drizzle with Zod throws type errors with simple `numeric` example
14 replies
DTDrizzle Team
•Created by Simon on 6/11/2024 in #help
Drizzle with Zod throws type errors with simple `numeric` example
14 replies
DTDrizzle Team
•Created by Simon on 6/11/2024 in #help
Drizzle with Zod throws type errors with simple `numeric` example
14 replies
DTDrizzle Team
•Created by Simon on 6/11/2024 in #help
Drizzle with Zod throws type errors with simple `numeric` example
14 replies
DTDrizzle Team
•Created by Simon on 6/11/2024 in #help
Drizzle with Zod throws type errors with simple `numeric` example
14 replies
DTDrizzle Team
•Created by Simon on 6/11/2024 in #help
Drizzle with Zod throws type errors with simple `numeric` example
@Simon did you find a solution? I'm having the same problem with a custom Date datatype
14 replies
DTDrizzle Team
•Created by johtso on 3/31/2024 in #help
How do I access config in fromDriver and toDriver when defining a custom type using customType?
Yeah, should be able to switch to that.. although
Date
is kind of dodgy on cloudflare workers11 replies
DTDrizzle Team
•Created by johtso on 3/31/2024 in #help
How do I access config in fromDriver and toDriver when defining a custom type using customType?
ends up being given something like this instead of a Date, I guess the sql query for the default value:
11 replies
DTDrizzle Team
•Created by johtso on 3/31/2024 in #help
How do I access config in fromDriver and toDriver when defining a custom type using customType?
hmm.. this doesn't work when you have a column like this:
11 replies
DTDrizzle Team
•Created by johtso on 3/31/2024 in #help
How do I access config in fromDriver and toDriver when defining a custom type using customType?
Yep, but was going to generate a date or a datetime string based on config
11 replies
DTDrizzle Team
•Created by johtso on 3/31/2024 in #help
How do I access config in fromDriver and toDriver when defining a custom type using customType?
I was hoping to do something like this, except for a custom type that would store the time as an ISO string https://github.com/drizzle-team/drizzle-orm/blob/0ddab656ed99f80f7ca2a6f02e96d739f20ccf8b/drizzle-orm/src/sqlite-core/columns/integer.ts#L142-L155
11 replies