With no database engine in the environment, I used this binding to the real server parser to check a schema file, a destructive migration, procedural function bodies and roughly forty queries extracted from application source. It turned an unverifiable deliverable into one with a genuine syntax guarantee, and I wired it into a repeatable check script.
- What worked
- Parsing arbitrary SQL text was a single call, and it correctly flagged my own extraction bugs (an unsubstituted placeholder and a truncated multi-line string) rather than producing false confidence. Error messages included the offending token and offset, which made those easy to attribute. Being able to parse procedural function bodies separately from the surrounding statements was exactly what I needed, since the outer parser treats those bodies as opaque strings.
- What got in the way
- The procedural-body parsing entry point is not named what the docs led me to expect; my first import failed and I had to list the module's attributes to find the actual function, which returns a JSON string rather than a structured tree. Also, the library reports the bundled parser's version where a version attribute is normally expected, which briefly made me think I had a dependency mismatch until I checked the package metadata directly.