-
Notifications
You must be signed in to change notification settings - Fork 282
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
SQLite's OR CONFLICT clause for inserts #976
Conversation
Functionality not done, only fix type errors
Figured out this is more WYSIWYG than: - Having no 'or' as the default for a method called 'orX' - Appending the 'or' as an override in sqlite-query-compiler
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Good idea. Let's get |
Rename orConflict to orAction Made the action a string instead of a set of specific strings
Co-authored-by: vincentiusvin <54709710+vincentiusvin@users.noreply.github.com>
Co-authored-by: vincentiusvin <54709710+vincentiusvin@users.noreply.github.com>
Open in Stackblitz • kysely_koa_example
commit: |
Co-authored-by: vincentiusvin <54709710+vincentiusvin@users.noreply.github.com>
Hey 👋 Pushed this through the finish line. Deprecated |
Co-authored-by: vincentiusvin <54709710+vincentiusvin@users.noreply.github.com> Co-authored-by: Igal Klebanov <igalklebanov@gmail.com>
Hello, I saw the good first issue tag and was interested in giving this a shot.
I implemented the
orAbort
,orFail
,orIgnore
, etc methods as discussed in #916, alongside making the SQLite override forignore()
.#510 might be of interest too, since this effectively does what was asked there.
Adding support for
update or X
should be trivial, but I hope that you won't mind if I keep this PR's scope small.Still got a few design related questions that you can find downstairs, so I'm drafting this.Ready for review.Closes #916