A fork of node-sql-parser that adds extra SQL types (e.g., VECTOR) to AST parsing. Version 5.3.14 includes support for multiple database engines (MySQL, PostgreSQL, etc.), an AST-based visitor for table/column lists, and conversion back to SQL. Maintained as a community fork alongside the original taozhi8833998/node-sql-parser. Ships TypeScript types and supports both ESM and CommonJS.
npm install node-sql-parser-etypesNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Parses a simple SELECT statement into an AST and converts it back to SQL, showing the round-trip behaviour.
Check the original package for latest features and stability. Evaluate if extra types justify using the fork.
Create a Parser instance: const parser = new Parser(); then call parser.astify() / parser.sqlify().
Migrate to node-sql-parser (original) or ts-sql-parser if you need active maintenance.
Verify AST shape expected by downstream code with your specific SQL statements.
const parser = new Parser(); parser.astify('SQL')npm install node-sql-parser-etypes and import from 'node-sql-parser-etypes'.
Ensure script src is correct: https://unpkg.com/node-sql-parser-etypes/umd/mysql.umd.js and use after window.onload.
Use parser for the appropriate dialect or check if VECTOR is included in that dialect's grammar.
No dependency data recorded yet.