Return whether *source* exists in parsed_manpages.
(self, source: str)
| 254 | return results |
| 255 | |
| 256 | def has_manpage_source(self, source: str) -> bool: |
| 257 | """Return whether *source* exists in parsed_manpages.""" |
| 258 | row = self._conn.execute( |
| 259 | "SELECT 1 FROM parsed_manpages WHERE source = ? LIMIT 1", (source,) |
| 260 | ).fetchone() |
| 261 | return row is not None |
| 262 | |
| 263 | def delete_manpage(self, source: str) -> bool: |
| 264 | """Delete a manpage and its mappings (via CASCADE) from the store. |
no outgoing calls