Thimo_o
Explore posts from serversDTDrizzle Team
โขCreated by Louistiti on 7/18/2023 in #help
Clear the whole database?
This is what made the planetscale version work for me, I had to add the schema in my drizzle function and use truncate table
59 replies
DTDrizzle Team
โขCreated by Louistiti on 7/18/2023 in #help
Clear the whole database?
@louistiti_ As far as I know I do the same
59 replies
DTDrizzle Team
โขCreated by Louistiti on 7/18/2023 in #help
Clear the whole database?
@louistiti_ I do get Property 'forEach' does not exist on type 'ExecutedQuery'.. Does your tables variable have another type?
59 replies
DTDrizzle Team
โขCreated by Louistiti on 7/18/2023 in #help
Clear the whole database?
@mendy.l @louistiti I tried the raw example, but I'm doing/forgetting something I think
In the for loop of the raw example I get tables: ExecutedQuery, which I can not iterate over. Do I have to change something here so the typing is correct?
Mendy, I had db..schema undefined but I still don't know why. Do you know why that might happen?
For my db variable I have this:
That should be correct right?
59 replies
DTDrizzle Team
โขCreated by Louistiti on 7/18/2023 in #help
Clear the whole database?
I now have a separate account just for testing, so that works quite good
59 replies
DTDrizzle Team
โขCreated by Louistiti on 7/18/2023 in #help
Clear the whole database?
yeah, thats also true, I hope I can get my clear script working then
59 replies
DTDrizzle Team
โขCreated by Louistiti on 7/18/2023 in #help
Clear the whole database?
I think I saw a tweet from drizzle before, where they said it was quite easy to use multiple providers at once, like an sqlite and a planetscale one, that might be a sweet spot. Do you know how that might be done perhaps?
59 replies
DTDrizzle Team
โขCreated by Louistiti on 7/18/2023 in #help
Clear the whole database?
Opening a new branch would be quite overkill I think, since I then need to also push the schema again and wait for planetscale to configure it. I wonder how Prisma does it (although this was mostly for a local sqlite thing too ) https://github.com/prisma/prisma/issues/11261
59 replies
DTDrizzle Team
โขCreated by Louistiti on 7/18/2023 in #help
Clear the whole database?
I would rather prefer locally too, but the way planetscale uses mysql through vitess, it is a lot easier to use a branch on there than to try and set that up locally for now. I haven't seen anyone do a complete copy of a planetscale db locally yet
59 replies