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

transact for sqlite #1

Closed
mgerlach-klick opened this issue Oct 23, 2018 · 2 comments
Closed

transact for sqlite #1

mgerlach-klick opened this issue Oct 23, 2018 · 2 comments

Comments

@mgerlach-klick
Copy link

Hey, JFYI, sqlite as of 3.25 also supports postgres' ON CONFLICT DO syntax, which allows for upserting and therefore transacting. I implemented this yesterday for python, if you're curious you can rifle through the code and steal what you want. Most of it is inspired by coast anyway ;)

https://gist.github.com/mgerlach-klick/0044a0e7e98b20002e967d495a8d79c7#file-db-py-L65

@swlkr
Copy link
Member

swlkr commented Oct 27, 2018

Oh interesting, yeah that’s next up, I might call it upsert or something though, I kind of changed “transact” to take a vector of sql 😅

@swlkr
Copy link
Member

swlkr commented Aug 18, 2019

Just going to close this. I'm open to PRs for this though!

@swlkr swlkr closed this as completed Aug 18, 2019
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

2 participants