Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: MSSQL onConflict/merge support #6050

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dustryder
Copy link

Ref: #5646, #3186

What

Support for onConflict/merge for MSSQL

Why

Because there there is no support for this in Knex for MSSQL. You'd have to either decide on an upsert approach and wrap it in raw or use individual statements to achieve the similar behaviour

How

Implementing (most) of the current onConflict/ignore/merge API via a subset of standard ansi sql merge statements. .raw inside onConflict has not been added.

Anything else

Because this approach uses standard syntax, other dialects should also be able implement this in a similar manner (given they too support standard syntax).

test case changes

test changes

cleanup

whoops
@dustryder dustryder marked this pull request as ready for review March 31, 2024 08:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant