open-index/open-npm huggingface dataset:
npm package: @mia-platform/sql-ddl-parser
Description: Permissive SQL DDL Parser
Author: dineug
Latest version: 0.2.8

# sql-ddl-parser

> Permissive SQL DDL Parser

[![npm version](https://img.shields.io/npm/v/@vuerd/sql-ddl-parser.svg?style=flat-square&color=blue)](https://www.npmjs.com/package/@vuerd/sql-ddl-parser) [![GitHub](https://img.shields.io/github/license/vuerd/vuerd?style=flat-square&color=blue)](https://github.com/vuerd/vuerd/blob/master/LICENSE) [![PRs](https://img.shields.io/badge/PRs-welcome-blue?style=flat-square)](https://github.com/vuerd/vuerd/pulls) [![CI](https://img.shields.io/github/workflow/status/vuerd/vuerd/CI?label=CI&logo=github&style=flat-square)](https://github.com/vuerd/vuerd/actions)

## Document

- [Import SQL DDL support syntax](https://github.com/vuerd/vuerd/blob/master/packages/sql-ddl-parser/src/SQL_DDL_Test_Case.md)

## interface

```typescript
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

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

## Usage

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

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