@mia-platform/sql-ddl-parser
v0.2.8
Published
Permissive SQL DDL Parser
Downloads
408
Readme
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...');