-
Notifications
You must be signed in to change notification settings - Fork 123
Add delete_many to support for bulk deletes
#305
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
Conversation
simonprickett
left a comment
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
|
|
||
| @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.
chayim
left a comment
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.