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 upsert functionality #3

Closed
stefanw opened this issue Apr 6, 2013 · 3 comments
Closed

Add upsert functionality #3

stefanw opened this issue Apr 6, 2013 · 3 comments

Comments

@stefanw
Copy link
Collaborator

stefanw commented Apr 6, 2013

Common enough use case I believe.

Would get rid of code like

if not table.update(...):
    table.insert(...)
@gka
Copy link
Collaborator

gka commented Apr 6, 2013

Well that's what we already have since version 0.0.1, I think. See
https://dataset.readthedocs.org/en/latest/api.html#dataset.Table.upsert

@gka gka closed this as completed Apr 6, 2013
@stefanw
Copy link
Collaborator Author

stefanw commented Apr 6, 2013

Sweet. Sorry, missed it in the docs. Maybe put it in the Quickstart part.

@gka
Copy link
Collaborator

gka commented Apr 6, 2013

come on, it's praised as the second big feature on the homepage: https://dataset.readthedocs.org/en/latest/#features :)

(and it has been there even since sqlaload times, see https://github.com/okfn/sqlaload#sqlalchemy-loading-tools )

(( which pudo authored a year ago okfn/sqlaload@8a5581d :-) ))

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