RequestFX
DTDrizzle Team
•Created by RequestFX on 3/31/2024 in #help
How to query many-many with mysql
I will just use joins, I think this might not work for mysql but I have no other databases to check if thats the case. Please notify me if thats the case
6 replies
DTDrizzle Team
•Created by RequestFX on 3/31/2024 in #help
How to query many-many with mysql
it did not help
6 replies
DTDrizzle Team
•Created by RequestFX on 3/31/2024 in #help
How to query many-many with mysql
I took exactly this many to many schema for many-many and modified it for mysql so this should be fine
https://orm.drizzle.team/docs/rqb#many-to-many
and this is how I query m-m
The rest of the code is rather unrelevant setup code
6 replies
DTDrizzle Team
•Created by 1girl, best quality on 3/31/2024 in #help
`drizzle-kit generate:sqlite` doesn't work
Does it maybe not find the path? Maybe it already generated a schema, on no changes to the schema it will not generate a new patch
13 replies
DTDrizzle Team
•Created by 1girl, best quality on 3/31/2024 in #help
`drizzle-kit generate:sqlite` doesn't work
Not sure if that's important but I named the table the same as the variable so try lowercase
const users
13 replies
DTDrizzle Team
•Created by 1girl, best quality on 3/31/2024 in #help
`drizzle-kit generate:sqlite` doesn't work
Did you try with providing a path rather than using a config file? Not sure why you would want to use it, you can use scripts to achieve the same
13 replies
DTDrizzle Team
•Created by 1girl, best quality on 3/31/2024 in #help
`drizzle-kit generate:sqlite` doesn't work
Or this video, not SQLite but not relevant for your question
https://youtu.be/hIYNOiZXQ7Y
13 replies
DTDrizzle Team
•Created by 1girl, best quality on 3/31/2024 in #help
`drizzle-kit generate:sqlite` doesn't work
It says it, no config path provided. A drizzle config is not strictly required. Refer to documentation
13 replies
DTDrizzle Team
•Created by Heisnberg on 3/23/2024 in #help
Issues with the generated sql files
schema.ts (pretty sure thats correct, pasted only relevant info)
Query
Error
mysql Ver 15.1 Distrib 10.4.32-MariaDB, for Win64 (AMD64), source revision c4143f909528e3fab0677a28631d10389354c491
10 replies
DTDrizzle Team
•Created by Heisnberg on 3/23/2024 in #help
Issues with the generated sql files
I get similar error, im trying to query a m-m relation
10 replies