From e366559c3c2a24f5ca3685910f32b876ebf1a0dd Mon Sep 17 00:00:00 2001 From: xiaowei Date: Mon, 4 Jan 2021 14:42:22 +0800 Subject: [PATCH 1/2] chore: alter the license to MIT --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index e6ab844..1189a8b 100644 --- a/package.json +++ b/package.json @@ -21,7 +21,7 @@ "test": "jest" }, "author": "dt-insight-front", - "license": "ISC", + "license": "MIT", "devDependencies": { "@types/jest": "^24.0.13", "@typescript-eslint/eslint-plugin": "^3.10.1", From 28a62eede00a6107e76d69d0f0f1b4bcc3a65957 Mon Sep 17 00:00:00 2001 From: xiaowei Date: Mon, 4 Jan 2021 14:44:26 +0800 Subject: [PATCH 2/2] docs: add npm download statistic badge --- README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 464817b..1d12241 100644 --- a/README.md +++ b/README.md @@ -1,12 +1,15 @@ # dt-sql-parser -[![NPM version][npm-image]][npm-url] +[![NPM version][npm-image]][npm-url] [![NPM downloads][download-img]][download-url] English | [简体中文](./README-zh_CN.md) [npm-image]: https://img.shields.io/npm/v/dt-sql-parser.svg?style=flat-square [npm-url]: https://www.npmjs.com/package/dt-sql-parser +[download-img]: https://img.shields.io/npm/dm/dt-sql-parser.svg?style=flat +[download-url]: https://www.npmjs.com/package/dt-sql-parser + dt-sql-parser is a **SQL Parser** project built with [ANTLR4](https://github.com/antlr/antlr4), and it's mainly for the **BigData** domain. The [ANTLR4](https://github.com/antlr/antlr4) generated the basic Parser, Visitor, and Listener, so it's easy to complete the **syntax validation**, **tokenizer**, **traverse** the AST, and so on features. Besides, it' provides some helper methods, like **split** SQL, and filter the `--` and `/**/` types of comments in SQL.