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

Add sql matcher toSetColumns #5

Open
atheck opened this issue Apr 24, 2024 · 0 comments
Open

Add sql matcher toSetColumns #5

atheck opened this issue Apr 24, 2024 · 0 comments

Comments

@atheck
Copy link
Owner

atheck commented Apr 24, 2024

toSetColumns([
  "column_a",
  "column_b"
], { onConflict: ["column_a"] });

verifies that "column_a" and "column_b" are set when inserting into a table, and also sets "column_b" when the insert conflicts on column "column_a".

It also verifies the correct order of columns.

This deprecates toUseColumnsInCorrectOrder for inserts.

@atheck atheck changed the title Add sql matcher updatesOnConflict Add sql matcher setsColumns Apr 24, 2024
@atheck atheck changed the title Add sql matcher setsColumns Add sql matcher toSetColumns Apr 24, 2024
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

No branches or pull requests

1 participant