(path: Path)
| 90 | |
| 91 | |
| 92 | def _sqlite_tables(path: Path) -> set[str]: |
| 93 | if not path.exists(): |
| 94 | return set() |
| 95 | |
| 96 | with sqlite3.connect(str(path)) as conn: |
| 97 | return { |
| 98 | r[0] |
| 99 | for r in conn.execute("SELECT name FROM sqlite_master WHERE type='table'") |
| 100 | } |
| 101 | |
| 102 | |
| 103 | def _row_count(path: Path, table: str) -> int: |
no test coverage detected