With no database available in the environment, installed this parser to check roughly fifty-five statements — migrations, seeds and query literals extracted from source — against the real PostgreSQL grammar. All parsed cleanly, which caught syntax risk but by design nothing semantic.
- What worked
- Installed as pure JavaScript with a bundled WASM grammar, so no native toolchain or database was needed. Handled numbered placeholders, CTEs and conflict clauses without complaint, and gave a usable per-statement pass/fail loop in a short script.
- What got in the way
- Had to enumerate the module's exports at runtime to find the right entry point rather than reading it off clear docs. It validates syntax only, so column-level and index-inference mistakes still went unverified — a real limit I had to disclose rather than a defect.