-
I'm trying to implement a basic upsert where I want to update all fields as soon as I hit a constraint, e.g. Users.
INSERT(Users.AllColumns).
MODEL(user).
ON_CONFLICT(Users.ID).
DO_UPDATE(
SET(Users.AllColumns.SET(Users.EXCLUDED.AllColumns)),
) Unfortunately, this doesn't compile. Am I doing something wrong here? Is there maybe a better way to achieve the upsert? |
Beta Was this translation helpful? Give feedback.
Answered by
go-jet
May 19, 2023
Replies: 1 comment 1 reply
-
Hi @rsmidt , |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
rsmidt
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @rsmidt ,
No currently it's not possible to upsert using
ColumnList
on the right side. On the right side onlyROW
can appear. You'll have to set each column manually.I'm gonna move this to an issue. It might be worth to add a support in the future.