Spec-compliant Oracle SQL parser that generates an AST following the Oracle Database Language Reference. Version 0.1.0 is the initial release, likely with sporadic updates. It supports common Oracle DDL and DML statements. Differentiators: built specifically for Oracle SQL syntax, not generic SQL, and includes an AST explorer. Currently only supports limited statements like SELECT, CREATE TABLE, INSERT; not production-ready for complex queries.
npm install oracle-sql-parserNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Parses a simple Oracle CREATE TABLE statement and logs the AST as JSON, with error handling for parse failures.
Check the list of supported statements against the parser's documentation or source.
Split large SQL scripts into individual statements and parse separately.
Pin to exact version and test upgrades.
Transform the AST if needed for interoperability.
Add a types.d.ts file or use jotai for custom types.
Expect parse errors for unsupported syntax; consider alternative parsers for advanced features.
Simplify the SQL to basic SQL; check the parser's supported statements list.
Correct usage: const parser = new Parser(); then parser.parse(sql);
Run `npm install oracle-sql-parser` and ensure node_modules is correct.
No dependency data recorded yet.