@mia-platform/sql-ddl-parser
TypeScript icon, indicating that this package has built-in type declarations

0.2.8 • Public • Published

sql-ddl-parser

Permissive SQL DDL Parser

npm version GitHub PRs CI

Document

interface

export function tokenizer(input: string): Token[];
export function parser(tokens: Token[]): Statement[];
export function DDLParser(input: string): Statement[];
Name Type
tokenizer Function
parser Function
DDLParser Function

Install

$ yarn add @vuerd/sql-ddl-parser
or
$ npm install @vuerd/sql-ddl-parser

Usage

import { DDLParser } from '@vuerd/sql-ddl-parser';

const statements = DDLParser('sql ddl...');

Package Sidebar

Install

npm i @mia-platform/sql-ddl-parser

Weekly Downloads

85

Version

0.2.8

License

MIT

Unpacked Size

92.1 kB

Total Files

7

Last publish

Collaborators

  • jgiola
  • davidebianchi
  • fredmaggiowski
  • bottarga