Generated code missing parameters for Upsert #1196
Unanswered
jamesleeht
asked this question in
Q&A
Replies: 1 comment
-
From a first look, I assume you generated code for MySQL whose UPSERT syntax is different from Postgres/SQLite. MySQL uses "ON DUPLICATE KEY UPDATE" and just looks for conflicts on the primary/unique keys. Reference. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
In the upsert documentation, I see this example:
I'm a little confused which parameter this
[]string{"id"}
is supposed to go, since my generated code only has these parameters:Am I doing something wrong with the generation?
Beta Was this translation helpful? Give feedback.
All reactions