dt-sql-parser is a SQL parser library built with ANTLR4, targeting BigData SQL dialects including MySQL, Flink, Spark (with recursive query support), Hive, PostgreSQL, Trino, and Impala. Version 4.1.0 (latest stable) provides syntax validation, code completion, lexical parsing, AST traversal, and table/column extraction. It is actively maintained with frequent releases. Key differentiators: supports multiple BigData dialects in one library, TypeScript-native with full type definitions, and offers advanced features like recursive query parsing for SparkSQL. Requires Node >=18 and is ESM-only.
npm install bq-dt-sql-parserNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows basic validation, code completion, and table extraction with MySQL parser. Replace MySQL with any other dialect class.
Use import syntax or dynamic import().
Upgrade Node to v18 or later.
Create a new instance per dialect or per use case (e.g., const mysql = new MySQL(); const spark = new SparkSQL();).
Always provide SQL with uppercase keywords or ensure consistent casing.
Use import { MySQL } from 'dt-sql-parser' or use dynamic import().Convert your project to ESM or use dynamic import().
Ensure you use: import { MySQL } from 'dt-sql-parser'; then const mysql = new MySQL();Upgrade Node to >=18 or use a bundler like webpack/rollup.
No dependency data recorded yet.