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 file deletion option to deldb() #89

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

transiscodev
Copy link

Additions

___location__ : str a string in the PickleDB class that holds the database path as entered

Modified

deldb(self, andfile = False) the deletion function now includes an option to delete the database file.

This implementation is non breaking. Existing calls to deldb() will not delete the file unless deldb(True) is called (which is invalid in older implementations, so there isn't a risk to production code.)

Creature comforts

Additional unit tests for new functionality, fixed docstring typos, updated relevant docstrings and HTML documentation.
pytest tests.py reports 100% ✅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant