pgsql-deparser

Postgres Deparser

The definitive Postgres deparser for JavaScript and TypeScript, delivering byte-for-byte SQL round-tripping with AST-level precision.

Byte-Perfect Output

Exact SQL reconstruction from AST

High Performance

Optimized for speed and accuracy

Production Ready

Battle-tested in production environments

pgsql-deparser Features

Advanced Postgres deparsing capabilities

Perfect Round-Tripping

Parse SQL to AST and deparse back to identical SQL

AST Manipulation

Modify AST nodes and generate valid SQL

TypeScript Support

Full TypeScript types for all AST nodes

Comprehensive Coverage

Supports all Postgres SQL syntax