Chi Hao
Explore posts from serversDTDrizzle Team
•Created by Chi Hao on 4/11/2024 in #help
update multiple rows is not working. PostgresError: column excluded.name does not exist
Thanks for the help!
6 replies
DTDrizzle Team
•Created by Chi Hao on 4/11/2024 in #help
update multiple rows is not working. PostgresError: column excluded.name does not exist
i have decided to use this instead
6 replies
DTDrizzle Team
•Created by Chi Hao on 4/11/2024 in #help
update multiple rows is not working. PostgresError: column excluded.name does not exist
I have a requirement whereby i will be inserting/updating a list of values at once and each item will be a row in the table, I wonder how am I suppose to delete multiple rows for those values that are no longer in the list when send to
updateRestaurantSettings
function ? Is it by checking the orderPhaseValues in updateRestaurantSettings
and the order_phases
table, then if the value exist in the table but doesnt exist in orderPhaseValues, that value needs to be deleted? I wonder if there's a more efficient way to perform this deletion.6 replies
DTDrizzle Team
•Created by Chi Hao on 4/1/2024 in #help
How do I reuse the results from the where clause within the findMany?
ok fixed, i forgot to export the relations in drizzle()
7 replies
DTDrizzle Team
•Created by Chi Hao on 4/1/2024 in #help
How do I reuse the results from the where clause within the findMany?
hi @Aaroned , I wonder why I'm getting this error
TypeError: Cannot read properties of undefined (reading 'referencedTable')
?
this is the code
7 replies
DTDrizzle Team
•Created by Chi Hao on 4/1/2024 in #help
How do I reuse the results from the where clause within the findMany?
I wonder if I should use join instead? but I thought findMany is similar to join?
7 replies
DTDrizzle Team
•Created by Chi Hao on 4/1/2024 in #help
How do I reuse the results from the where clause within the findMany?
The query that might not be working?
7 replies
DTDrizzle Team
•Created by Chi Hao on 4/1/2024 in #help
How do I reuse the results from the where clause within the findMany?
my schema
the relations
7 replies
DTDrizzle Team
•Created by Chi Hao on 3/28/2024 in #help
How to use findMany?
thanks @Sillvva ! I also need to make sure my types in the schema are matching the casing of the pgtable name
7 replies
DTDrizzle Team
•Created by Chi Hao on 3/28/2024 in #help
How to use findMany?
The line of code is where i use findMany
7 replies
DTDrizzle Team
•Created by Chi Hao on 3/9/2024 in #help
Connection timeout when connecting supabase to astro project while using Drizzle kit
solved: I was supposed to use the Connection string URI not the Project URL
4 replies
DTDrizzle Team
•Created by Chi Hao on 3/9/2024 in #help
Connection timeout when connecting supabase to astro project while using Drizzle kit
i also encountered an issue whereby im not allowed to use
in the drizzle.config.ts file. The error was :
I have also tried hard coding the URL and connectionString in the drizzle.config.ts and src/lib/db.ts respectively and I'm still facing the connection timed out issue.
4 replies
DTDrizzle Team
•Created by Chi Hao on 3/9/2024 in #help
Connection timeout when connecting supabase to astro project while using Drizzle kit
This is my drizzle.config.ts
this is my src/lib/db.ts
this is the script at package.json
my .env variables' names looks like this
4 replies