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

Better documentation for insert-replace #393

Closed
simonw opened this issue Jan 30, 2022 · 1 comment
Closed

Better documentation for insert-replace #393

simonw opened this issue Jan 30, 2022 · 1 comment

Comments

@simonw
Copy link
Owner

simonw commented Jan 30, 2022

Currently: https://sqlite-utils.datasette.io/en/stable/python-api.html#insert-replacing-data

If you want to insert a record or replace an existing record with the same primary key, using the replace=True argument to .insert() or .insert_all():

Should describe the exception you get first, then how to use replace to avoid it.

@simonw
Copy link
Owner Author

simonw commented Feb 3, 2022

@simonw simonw closed this as completed Feb 3, 2022
simonw added a commit that referenced this issue Feb 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant