-
There is quite simple way to do that for one property:
But as long as I want to insert two fields this falls short. Only way that I've found is:
Which is kinda: "serialize everything into an array of strings and deserialize in a loop". Am I missing something? (Except using JSON, which is basically the same idea). |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
This is a limitation of Postgres that we've not yet implemented a workaround for: you cannot pass tuples as query arguments. If we assume that we can pass tuples as arguments, then it's:
at some point we can even add spreading sugar for a case like this to avoid repeating the props:
|
Beta Was this translation helpful? Give feedback.
-
We have added support for tuples in arguments a while ago, so this works now:
|
Beta Was this translation helpful? Give feedback.
We have added support for tuples in arguments a while ago, so this works now: