pgsql-deparser
PostgreSQL Deparser
The definitive PostgreSQL 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 PostgreSQL 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 PostgreSQL SQL syntax