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

Method counts

explainshell/store.py:304–313  ·  view source on GitHub ↗

Return row counts for core tables.

(self)

Source from the content-addressed store, hash-verified

302 return result
303
304 def counts(self) -> dict[str, int]:
305 """Return row counts for core tables."""
306 return {
307 "manpages": self._conn.execute(
308 "SELECT COUNT(*) FROM parsed_manpages"
309 ).fetchone()[0],
310 "mappings": self._conn.execute("SELECT COUNT(*) FROM mappings").fetchone()[
311 0
312 ],
313 }
314
315 def log_event(self, event: str, metadata: dict | None = None) -> None:
316 """Append an entry to the db_events log."""

Callers 5

extractFunction · 0.95
_fake_runMethod · 0.80

Calls

no outgoing calls