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 method for deleting data #279

Open
jsh2134 opened this issue Sep 26, 2018 · 0 comments
Open

Add method for deleting data #279

jsh2134 opened this issue Sep 26, 2018 · 0 comments

Comments

@jsh2134
Copy link
Contributor

jsh2134 commented Sep 26, 2018

Deleting data in a dataset requires a DatasetMigration in delete mode, which can be verbose and prone to syntax/arg mistakes.

We can simplify this with a .delete() method.

Current

>>> my_dataset.query().filter(some_value=True).migrate(my_dataset, commit_mode='delete')

Proposed

>>> my_dataset.query().filter(some_value=True).delete()
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