test: add draft workflow coverage and sqlite migration helpers

This commit is contained in:
cesnimda
2026-03-22 18:59:05 +01:00
parent 87c9a11edc
commit 7f4068518d
6 changed files with 191 additions and 6 deletions
+19
View File
@@ -0,0 +1,19 @@
#!/usr/bin/env python3
import json
import sys
from pathlib import Path
def main(path: str) -> None:
payload = json.loads(Path(path).read_text(encoding='utf-8'))
for table, rows in payload.items():
print(f'-- {table}: {len(rows)} rows')
for row in rows[:2]:
print(row)
if __name__ == '__main__':
if len(sys.argv) != 2:
print('Usage: sqlite_preview.py <export-json>')
raise SystemExit(1)
main(sys.argv[1])