Shubham-Sinha
DTDrizzle Team
•Created by Shubham-Sinha on 8/14/2023 in #help
How to dynamically select columns in relation query with proper type inference ?
The above example generated following types
But if I use
7 replies
DTDrizzle Team
•Created by Shubham-Sinha on 7/11/2023 in #help
Error: Error connecting to database: fetch is not defined
Trying to use neon-http with SST
1 replies
DTDrizzle Team
•Created by Shubham-Sinha on 6/26/2023 in #help
How to fetch related table rows in many_to_many
I have three tables : products, collections and collections_products. Product can belong to many collections and collection can have many products.
When using 👆 I get this error:
could not identify an equality operator for type json
schema.ts
1 replies
DTDrizzle Team
•Created by Shubham-Sinha on 6/3/2023 in #help
How to type results that includes relations ?
I have two tables: collections and products. Collection has many products.
I make an api request that gets the response from server.
How can I add typing to fetch api response ?
3 replies
DTDrizzle Team
•Created by Shubham-Sinha on 6/2/2023 in #help
Implement full text search in postgres
Hi. I stumbled upon this issue (https://github.com/drizzle-team/drizzle-orm/issues/247) which was very useful. I then wanted to add support for weights. I was able to achieve 99% of the task but the last 1% is where I'm stuck and need help.
Generated sql:
Expected:
https://github.com/drizzle-team/drizzle-orm/issues/247#issuecomment-1573541065
3 replies
DTDrizzle Team
•Created by Shubham-Sinha on 6/1/2023 in #help
How to implement triggers or db hooks ?
Is there a way to know if sql statement got executed successfully or not ? I wanted to run a code when row gets inserted or updated ?
can custom loggers be used to implement the same ?
6 replies