Relational query builder in mysql?

I cant find anything about how to implement this. Am I blind or is this impossible?
5 Replies
Angelelz
Angelelz16mo ago
What do you mean by relational query builder?
Tjark
TjarkOP16mo ago
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
Angelelz
Angelelz16mo ago
You might have version problems, maybe deleting node_modules and installing everything again might help?
Tjark
TjarkOP16mo ago
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' });
Want results from more Discord servers?
Add your server