-
Notifications
You must be signed in to change notification settings - Fork 431
feat: add wait argument to Model.delete_table
#1270
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
feat: add wait argument to Model.delete_table
#1270
Conversation
0e8849a
to
ba5bb5b
Compare
@ikonst do I need to open an issue for this PR or is this good enough to be reviewed on its own? I was trying to integrate PynamoDB models into FactoryBoy and mimic the DjangoORM behavior of dropping and re-creating the db on each test, but found the |
No need for an issue ;) I'll get to it soon! |
ba5bb5b
to
1413852
Compare
1413852
to
23c0eff
Compare
@ikonst not sure if GitHub automatically pings you when I request a review, but this is ready for re-review. |
Can you also update docs/release_notes.rst? I assume for version 6.1.0... |
This adds a `wait` argument that will make the `delete_table` call block until the DynamoDB table is fully deleted if set to `True`. It defaults to `False` to not break the existing behavior.
23c0eff
to
d7676cc
Compare
@ikonst release notes added. |
This adds a
wait
argument that will make thedelete_table
call block until the DynamoDB table is fully deleted if set toTrue
. It defaults toFalse
to not break the existing behavior.