sql-ddl-parser
Permissive SQL DDL Parser
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...');