Switch history storage to an in-memory SQLite database.
(self)
| 719 | ) |
| 720 | |
| 721 | def _switch_to_memory_history(self) -> None: |
| 722 | """Switch history storage to an in-memory SQLite database.""" |
| 723 | try: |
| 724 | self.db.close() |
| 725 | except Exception: |
| 726 | pass |
| 727 | self.hist_file = ":memory:" |
| 728 | self.init_db() |
| 729 | self.new_session() |
| 730 | |
| 731 | def __del__(self) -> None: |
| 732 | if self.save_thread is not None: |
no test coverage detected