Many to many relationship using Turso
Hello I'm new to sql in general and I just followed and copy some codes through the documentation of turso and drizzle. I'm trying to make a many-to-many relation between drinks and ingredients. I want to know this is the correct way to do it?
7 Replies
I'm also open for improvements to this code 🙂 TIA! ❤️
I'm having this error, Idk if this is related to the relations I did
You need to install better-sqlite3
yep, it's working now. Thank you
Official docs recommend setting up a 3rd table for holding the many to many relations
and that's what copilot also proposes
how is this right?
You're right, I didn't look at the relations. I just saw the error. I don't know what result he got though