Dari
Explore posts from serversDTDrizzle Team
•Created by Dari on 10/11/2024 in #help
Resolved: Need help with my multi column primary and foreign key table
shall i open an issue?
12 replies
DTDrizzle Team
•Created by Dari on 10/11/2024 in #help
Resolved: Need help with my multi column primary and foreign key table
@Andrew Sherman is this intended behaviour or a bug?
12 replies
DTDrizzle Team
•Created by Dari on 10/11/2024 in #help
Resolved: Need help with my multi column primary and foreign key table
Found the issue.
The columns need to be in the correct order.
So it worked as soon as I changed it to:
12 replies
DTDrizzle Team
•Created by Dari on 10/11/2024 in #help
Resolved: Need help with my multi column primary and foreign key table
The first db push works fine.
On a second call without any changes it still tries to "alter" the table.
First db:push:
Second db:push:
Any suggestions?
I've tried defining the foreign key with the foreignKey function and directly in the schema field with
.references()
. Same result12 replies
DTDrizzle Team
•Created by brettlyc on 9/19/2024 in #help
transaction is not defined
btw drizzle rollsback automatically if any error is thrown within the transaction function.
So you wouldn need to try catch and if an error occurs it should rollback as expected
11 replies
DTDrizzle Team
•Created by brettlyc on 9/19/2024 in #help
transaction is not defined
Try this, I think it should fix it.
11 replies
DTDrizzle Team
•Created by brettlyc on 9/19/2024 in #help
transaction is not defined
transaction
does not return the transaction. Instead it provides the transaction within the lambda function.
So it definetly needs a function which executes within the transaction.
Something like this:
Basically you need to wrap the code with
Hope that helps 🙂11 replies
DTDrizzle Team
•Created by Dari on 7/3/2024 in #help
Drizzle Push to Turso fails on third attempt
Wow that solved it. Thank you very much!
3 replies
TTCTheo's Typesafe Cult
•Created by traches on 10/20/2023 in #questions
Drizzle & Planetscale data migration workflow
the --custom flag worked for me.
But how do you call drizzle's provided migrator function appropriately?
Because im getting an ERR_UNKNOWN_FILE_EXTENSION error
7 replies
TTCTheo's Typesafe Cult
•Created by Dari on 3/22/2023 in #questions
How to chain useQuery calls? | Use result from one query as input for another?
Thank you very much
23 replies
TTCTheo's Typesafe Cult
•Created by Dari on 3/22/2023 in #questions
How to chain useQuery calls? | Use result from one query as input for another?
and it's just typescript complaining
23 replies
TTCTheo's Typesafe Cult
•Created by Dari on 3/22/2023 in #questions
How to chain useQuery calls? | Use result from one query as input for another?
you are absolutely right with ? it worked
23 replies
TTCTheo's Typesafe Cult
•Created by Dari on 3/22/2023 in #questions
How to chain useQuery calls? | Use result from one query as input for another?
never mind sorry
23 replies
TTCTheo's Typesafe Cult
•Created by Dari on 3/22/2023 in #questions
How to chain useQuery calls? | Use result from one query as input for another?
but it leads to a runtime error
23 replies
TTCTheo's Typesafe Cult
•Created by Dari on 3/22/2023 in #questions
How to chain useQuery calls? | Use result from one query as input for another?
no i didn't destruct it
23 replies
TTCTheo's Typesafe Cult
•Created by Dari on 3/22/2023 in #questions
How to chain useQuery calls? | Use result from one query as input for another?
Not working, because ids cant be undefined / null
23 replies
TTCTheo's Typesafe Cult
•Created by Dari on 3/22/2023 in #questions
How to chain useQuery calls? | Use result from one query as input for another?
yup
23 replies
TTCTheo's Typesafe Cult
•Created by Dari on 3/22/2023 in #questions
How to chain useQuery calls? | Use result from one query as input for another?
Im still running into an issue, tho:
23 replies
TTCTheo's Typesafe Cult
•Created by Dari on 3/22/2023 in #questions
How to chain useQuery calls? | Use result from one query as input for another?
Of course, but in my specific case i am mapping the first query with data that is only available client and i don't want it to be passed to the server
23 replies
TTCTheo's Typesafe Cult
•Created by Dari on 1/9/2023 in #questions
How bad is revealing ids really?
alright, thank you
9 replies