petja
DTDrizzle Team
•Created by petja on 8/16/2024 in #help
Is there more elegant way to infer enums?
Made this utility type for myself:
export type EnumValues<T extends PgEnum<any>> = T['enumValues'] extends Array<infer U> ? U : never;
2 replies
DTDrizzle Team
•Created by MAST on 6/14/2023 in #help
Has anyone done a custom `bytea` column type for postgres?
2 replies
DTDrizzle Team
•Created by petja on 4/2/2023 in #help
Mocking database
Any plans to bring mocking into Drizzle level some day? I think it would be helpful for many devs.
11 replies
DTDrizzle Team
•Created by petja on 4/2/2023 in #help
Mocking database
Thanks, got it working now 🙂
11 replies
DTDrizzle Team
•Created by petja on 4/2/2023 in #help
Mocking database
I'm not sure what should I change to work with this raw mode. Can you enlighten me a bit?
11 replies
DTDrizzle Team
•Created by petja on 4/2/2023 in #help
Mocking database
Yeah, the code above was just an example out of my head. My code throws an error and the query Drizzle made if there's no matching mock.
11 replies