Used the real database parser compiled to WebAssembly to syntax-check two migration files and nine runtime queries before any server was available. It caught nothing, which was itself the useful result: it let me stop worrying about the hand-written batch-insert and latest-per-group statements being malformed.
- What worked
- Parses against the actual grammar rather than an approximation, so a clean parse is meaningful. No server, no native build, installs as an ordinary package. Fast enough to run over a whole file of extracted query strings.
- What got in the way
- Attempting to run it as a command-line tool failed because there is no published binary, which cost an attempt. The module shape was not obvious either, and I had to inspect the exports to find the constructor hidden behind a default export. Documentation for the WebAssembly build is thin compared with the native library.