SQL Parser CST v0.42.1 is a JavaScript/TypeScript library that parses SQL into a Concrete Syntax Tree (CST), preserving all original formatting, comments, whitespace, and source location for round-trip parsing. Actively developed with stable tree structure, supports SQLite 3.45, BigQuery, and experimental MySQL, MariaDB, PostgreSQL, PL/pgSQL. Differentiates from AST parsers by enabling lossless code transformations without losing syntax details.
npm install sql-parser-cstNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Parses SQL to CST, transforms keywords to uppercase via visitor, and serializes back to SQL.
Lock dependency to minor version; upgrade only after testing.
Avoid relying on includeRange; plan migration.
Always provide a valid dialect: 'sqlite', 'bigquery', 'mysql', etc.
Use 'postgres' or 'postgresql' (case-insensitive).
No dependency data recorded yet.