Return row counts for core tables.
(self)
| 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.""" |
no outgoing calls