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

Method drop

explainshell/store.py:139–149  ·  view source on GitHub ↗
(self, confirm: bool = False)

Source from the content-addressed store, hash-verified

137 self._conn = None
138
139 def drop(self, confirm: bool = False) -> None:
140 if not confirm:
141 return
142
143 logger.info("dropping mappings, parsed_manpages, manpages tables")
144 self._conn.executescript("""
145 DELETE FROM mappings;
146 DELETE FROM parsed_manpages;
147 DELETE FROM manpages;
148 """)
149 self._conn.commit()
150
151 def find_man_page(
152 self, name: str, distro: str | None = None, release: str | None = None

Callers 1

extractFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected