-
Notifications
You must be signed in to change notification settings - Fork 116
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 delete_many
to support for bulk deletes
#305
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dvora-h looks good to me.
aredis_om/model/model.py
Outdated
@@ -1115,9 +1115,13 @@ def key(self): | |||
return self.make_primary_key(pk) | |||
|
|||
@classmethod | |||
async def delete(cls, pk: Any) -> int: | |||
async def delete(cls, pk: Any, pipeline: Optional[Pipeline] = None) -> int: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think delete_all and delete should call a new function named _delete
underneath, that accepts a kwargs (at least). This would be a bit cleaner.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
WDYT>?
delete_all
to support for bulk deletesdelete_many
to support for bulk deletes
@dvora-h don't know if you saw, but more-itertools/more-itertools#633 was merged and released to pypi. Bumping your dependency version should the first set of CI issues. |
No description provided.