pgsql-deparser
Postgres Deparser
The definitive Postgres deparser for JavaScript and TypeScript, delivering byte-for-byte SQL round-tripping with AST-level precision.
Exact SQL reconstruction from AST
Optimized for speed and accuracy
Battle-tested in production environments
Advanced Postgres deparsing capabilities
Parse SQL to AST and deparse back to identical SQL
Modify AST nodes and generate valid SQL
Full TypeScript types for all AST nodes
Supports all Postgres SQL syntax