pickledb icon indicating copy to clipboard operation
pickledb copied to clipboard

Add file deletion option to deldb()

Open transiscodev opened this issue 1 year ago • 0 comments

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% ✅

transiscodev avatar May 14 '23 06:05 transiscodev