Files
padelnomics/scripts/prod_query.py
Deeman 301f3b76c3
All checks were successful
CI / test (push) Successful in 56s
CI / tag (push) Successful in 3s
feat: add scripts/prod_query.py — SSH query tool for prod DuckDB
Runs read-only SQL against analytics.duckdb (default) or lakehouse.duckdb
on the prod server over SSH. SQL is base64-encoded to avoid shell escaping.
Supports TSV (default) and JSON output. Blocks mutation keywords.

For lakehouse, works around the DuckDB catalog naming issue (SQLMesh views
reference "local" but the file creates catalog "lakehouse") by attaching
the file as the "local" catalog.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-10 16:15:38 +01:00

4.0 KiB