Explore related PostgreSQL tooling
mainThe pgsql-parser ecosystem includes several specialized packages for modular PostgreSQL development, AST manipulation, and testing. Depending on your needs, you may want to use:
Parsing & AST Manipulation
pgsql-parser: Symmetric parsing and deparsing of SQL statements.pgsql-deparser: Focused solely on converting ASTs back into SQL.@pgsql/parser: Multi-version parser supporting PostgreSQL 15, 16, and 17.@pgsql/traverse: Visitor pattern for traversing PostgreSQL AST nodes (similar to Babel's traverse).@pgsql/types: TypeScript type definitions for AST nodes.@pgsql/enums: TypeScript enum definitions for PostgreSQL constants.@pgsql/utils: Utilities for type-safe AST node creation and enum conversions.
Infrastructure & Protocol
pgpm: A Postgres Package Manager for modular development and deterministic migrations.pgsql-test: Isolated PostgreSQL databases for testing with automatic transaction rollbacks.pgsql-seed: Utilities for loading CSV, JSON, or SQL data into PostgreSQL.pg-proto-parser: Parses PostgreSQL Protocol Buffers to generate TypeScript interfaces and JSON mappings.libpg-query: The underlying PostgreSQL parser exposed for Node.js.