ptrxyz
ptrxyz
Explore posts from servers
DTDrizzle Team
Created by ptrxyz on 9/17/2023 in #help
TIMESTAMPTZ is returned as string instead of Date object
No description
9 replies
DTDrizzle Team
Created by ptrxyz on 9/15/2023 in #help
Migrating from Prisma Schema
I want to migrate away from Prisma, but I can't seem to find a good way to get the schema right: - Drizzle's introspect feature somehow generates garbage with VARCHARs deafult values, I saw that this seems to be a known issue on GitHub, so I suppose there is nothign I can do about that? - Then, while 1:1 relations seem to be covered, I can't get it to generate any (many:many) relations. How is that done by Drizzle? Does it use some kind of heuristics to detect relations? Our company's model has roughly 100 tables and for now we used Prisma to handle it, so we have a prisma schema in case that helps anything, but managing all relations manually is probably error prone and a bit of a problem. - Kysely has a nice generator to generate types from a Prisma schema. Can Drizzle also do that?
5 replies