JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 355
  • Score
    100M100P100Q97317F
  • License MIT

spec compliant parser for oracle sql

Package Exports

  • oracle-sql-parser
  • oracle-sql-parser/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (oracle-sql-parser) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

oracle-sql-parser

Simple SQL parser and AST explorer for Oracle SQL following the Oracle Database Language Reference.

Usage

Install the package:

npm i oracle-sql-parser

Parse and print:

const { Parser } = require('oracle-sql-parser');

const parser = new Parser();

const sql = 'CREATE TABLE users (id integer);';
const ast = parser.parse(sql);

console.log(ast);

Run locally

git clone https://github.com/1ilit/oracle-sql-parser.git
cd oracle-sql-parser
npm i
npm test

Scripts

Generate the parser in ./build/parser.js

npm run generate

Generate and minify the parser in ./build/parser.js

npm run build