pgsql-deparser

PostgreSQL Deparser

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