Reinitialize the singleton database instance. Used after decrypting the DB file.
(currentdir: str = None)
| 2757 | _db_instance = DatabaseManager(currentdir=currentdir) |
| 2758 | |
| 2759 | return _db_instance |
| 2760 | |
| 2761 | |
| 2762 | def close_db(): |
| 2763 | """Close the singleton database instance. Used before encrypting the DB file.""" |
| 2764 | global _db_instance |
| 2765 | with _db_lock: |
| 2766 | _db_instance = None |
| 2767 |
no test coverage detected