MCPcopy Index your code
hub / github.com/idank/explainshell / _store

Method _store

explainshell/caching_store.py:125–140  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

123 return self._store()._conn
124
125 def _store(self) -> Store:
126 if self._closed:
127 raise RuntimeError("CachingStore is closed")
128
129 thread_store = getattr(self._local, "store", None)
130 if thread_store is not None:
131 return thread_store
132
133 with self._stores_lock:
134 if self._closed:
135 raise RuntimeError("CachingStore is closed")
136
137 thread_store = Store(self._db_path, read_only=True)
138 self._local.store = thread_store
139 self._stores.append(thread_store)
140 return thread_store
141
142 @classmethod
143 def create(cls, db_path: str) -> NoReturn:

Callers 2

_connMethod · 0.95
find_man_pageMethod · 0.95

Calls 1

StoreClass · 0.90

Tested by

no test coverage detected