Relational query builder in mysql?
I cant find anything about how to implement this. Am I blind or is this impossible?
5 Replies
What do you mean by relational query builder?
Drizzle Queries - DrizzleORM
Drizzle ORM | %s
yes, but this part is throwing errors: const db = drizzle(client, { schema });
Argument of type '{ schema: typeof schema; }' is not assignable to parameter of type 'MySql2DrizzleConfig<typeof import("d:/SvelteKit/pidbinfo-next/src/lib/server/schema")> | undefined'.
I just assumed there has to be another way
Okay its still throwing ts errors but it works if I just Ignore them
You might have version problems, maybe deleting node_modules and installing everything again might help?
I found a solution in some post here in discord by using differen search querys. declaring it this way works:
export const db = drizzle(client, { schema: schema, mode: 'default' });