K
Kysely2mo ago
PogPEGA

tuple() and refTuple() questions

Hello, i would like to generate this query DELETE FROM table WHERE (col1,col2,col3) IN (...insert values); i found out from my code editor intellisense that tuple() and refTuple() exist, but to my surprise, i can only insert 2 values in a single tuple. is there a way for me to achieve that in kysely? or do i stick to raw sql for that? PS: i thought nesting would work, like tuple(tuple(a, b), c), but that's obviously not it
Solution:
There's no such limitation
Jump to solution
3 Replies
Solution
koskimas
koskimas2mo ago
There's no such limitation
PogPEGA
PogPEGAOP2mo ago
ah i see now, there are typings for 5 such columns at most i must have done something wrong leading me to that conclusion thanks 👍
Want results from more Discord servers?
Add your server