How about adding an upsertOrIgnore method? #44443
Unanswered
oleksiikhr
asked this question in
Ideas
Replies: 0 comments
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.
-
I was faced with a situation where I had to write a query like this:
But as it turned out, there are only
upsert
andinsertOrIgnore
inside the query builder.Example.
And I expect to see:
But here's the problem, this method is implemented only for
MySQL
, inPostgreSQL
andSqlServer
grammar it will not be supported (inSQLite
don't know).Does anyone have any idea how to write it this way without raw sql? Perhaps you will have some ideas, maybe I missed something.
Beta Was this translation helpful? Give feedback.
All reactions