Suji
DTDrizzle Team
•Created by Suji on 1/27/2024 in #help
Help with types relational query function
nice, thanks a lot now i have bunch of cleaning upto do 😁
28 replies
DTDrizzle Team
•Created by Suji on 1/27/2024 in #help
Help with types relational query function
28 replies
DTDrizzle Team
•Created by Suji on 1/27/2024 in #help
Help with types relational query function
sure gimme a few mins
28 replies
DTDrizzle Team
•Created by Suji on 1/27/2024 in #help
Help with types relational query function
table:BaseTable isn't used in the findMany query, 🤔 I'm using that to get the tableName
Let me update code snippet
28 replies
DTDrizzle Team
•Created by sik on 8/13/2023 in #help
What's the best way to deploy migrations on production database?
here is my migration script
This file lives at the root of the project and the migration folder 'drizzle' is also on the same level
i use this on railway and on eb by just appending it to the build step as you have done, works so far for me
16 replies
DTDrizzle Team
•Created by .deini on 7/4/2023 in #help
sql escaping on where
ran into a simillar issue where im conditionaly building the where clause
where.push(
sql
CONCAT(${users.firstName},' ', ${users.lastName}) ILIKE '%${name}%'
,
);
this throws a bind message error
you can build the string like this, where your adding the % within the interpolation
sql`CONCAT(${users.firstName},' ', ${users.lastName}) ILIKE ${'%' + pageOptionsDto.name + '%'}4 replies
DTDrizzle Team
•Created by Suji on 6/1/2023 in #help
Infer return type for relational query with pagination
Nope
3 replies
DTDrizzle Team
•Created by Suji on 5/29/2023 in #help
Doent infer type in Callback syntax for query
nvm, i expected relations to get inferred somehow from foreign keys, creations relations in drizzle worked
2 replies