MCPcopy Create free account
hub / github.com/Keeper-Security/Commander / get_connection

Method get_connection

keepercommander/params.py:416–425  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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

Callers 8

select_allMethod · 0.80
select_by_filterMethod · 0.80
delete_allMethod · 0.80
delete_by_filterMethod · 0.80
putMethod · 0.80
__init__Method · 0.80
__init__Method · 0.80
delete_dbMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected