docs: update incorrect words
This commit is contained in:
parent
fa5fed2c2a
commit
4586c7d63f
@ -33,8 +33,8 @@ yarn add dt-sql-parser
|
|||||||
|
|
||||||
### 语法校验(Syntax Validation)
|
### 语法校验(Syntax Validation)
|
||||||
|
|
||||||
首先需要声明想对应的 Parser 对象,不同的 SQL 类型需要引入不同的 Parser 对象处理,例如如果是
|
首先需要声明相应的 Parser 对象,不同的 SQL 类型需要引入不同的 Parser 对象处理,例如如果是
|
||||||
真的 `Flink SQL`, 则需要单独引入 `FlinkSQL` 对象, 这里我们使用 `GenericSQL` 作为示例:
|
针对 `Flink SQL`,则需要单独引入 `FlinkSQL` Parser,这里我们使用 `GenericSQL` 作为示例:
|
||||||
|
|
||||||
```javascript
|
```javascript
|
||||||
import { GenericSQL } from 'dt-sql-parser';
|
import { GenericSQL } from 'dt-sql-parser';
|
||||||
|
@ -7,7 +7,7 @@ English | [简体中文](./README-zh_CN.md)
|
|||||||
[npm-image]: https://img.shields.io/npm/v/dt-sql-parser.svg?style=flat-square
|
[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
|
[npm-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 `validate`, `tokenize`, `traverse` the AST, and so on features.
|
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.
|
Besides, it' provides some helper methods, like `split` SQL, and filter the `--` and `/**/` types of comments in SQL.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user