#!/usr/bin/env node /** * Dump per-dataset statistics from built SQLite databases as JSON. * * Used twice: once against the pre-refactor databases to capture a baseline, * and again after the schema unification. Comparing the two outputs is what * proves no score data was lost or invented. * * Schema-agnostic on purpose — columns come from PRAGMA table_info, so the same * script runs against the old 18/20-column tables and the new 22-column one. * * Usage: * node db-stats.js