This PR cleans up the Database class (and general KLDatabase module), adds unit tests and docstrings for the main Database method, and also adds new methods Database.select() and Database.delete() for retrieving and removing data from the database (respectively).
Database creation/rebuilding has also been factored out into a separate function to simplify the Database class.
Merge Checklist
[x] the PR has been reviewed and all comments are resolved
PR Description
This PR cleans up the Database class (and general KLDatabase module), adds unit tests and docstrings for the main Database method, and also adds new methods
Database.select()
andDatabase.delete()
for retrieving and removing data from the database (respectively).Database creation/rebuilding has also been factored out into a separate function to simplify the Database class.
Merge Checklist
closes #<issue-number>
to automatically close an issue