(self)
| 414 | return None |
| 415 | |
| 416 | def get_connection(self) -> sqlite3.Connection: |
| 417 | if not hasattr(self.thread_local, 'sqlite_connection'): |
| 418 | if self.config_filename: |
| 419 | file_path = os.path.abspath(self.config_filename) |
| 420 | file_path = os.path.dirname(file_path) |
| 421 | file_path = os.path.join(file_path, 'keeper_db.sqlite') |
| 422 | else: |
| 423 | file_path = ':memory:' |
| 424 | self.thread_local.sqlite_connection = sqlite3.Connection(file_path) |
| 425 | return self.thread_local.sqlite_connection |
no outgoing calls
no test coverage detected