docs: update README.md
This commit is contained in:
parent
a5757a30b6
commit
aa101bf2ef
@ -21,14 +21,14 @@ dt-sql-parser 是一个基于 [ANTLR4](https://github.com/antlr/antlr4) 开发
|
|||||||
|
|
||||||
**SQL 辅助方法支持**
|
**SQL 辅助方法支持**
|
||||||
|
|
||||||
| SQL 类型 | SQL 切割 | 自动补全 |
|
| SQL 类型 | SQL 切割 | 自动补全 |
|
||||||
| ----------- | -------- | -------- |
|
| ----------- | -------- | -------- |
|
||||||
| Generic SQL | WIP | WIP |
|
| Generic SQL | WIP | WIP |
|
||||||
| Flink SQL | ✅ | ✅ |
|
| Flink SQL | ✅ | ✅ |
|
||||||
| Spark SQL | ✅ | ✅ |
|
| Spark SQL | ✅ | ✅ |
|
||||||
| Hive SQL | ✅ | ✅ |
|
| Hive SQL | ✅ | ✅ |
|
||||||
| PL/SQL | WIP | WIP |
|
| PL/SQL | WIP | WIP |
|
||||||
| Postgre SQL | WIP | WIP |
|
| PostgreSQL | ✅ | ✅ |
|
||||||
| Trino SQL | ✅ | ✅ |
|
| Trino SQL | ✅ | ✅ |
|
||||||
|
|
||||||
> 提示:当前的 Parser 是 `Javascript` 语言版本,如果有必要,可以尝试编译 Grammar 文件到其他目标语言
|
> 提示:当前的 Parser 是 `Javascript` 语言版本,如果有必要,可以尝试编译 Grammar 文件到其他目标语言
|
||||||
|
@ -35,8 +35,8 @@ Additionally, it provides auxiliary functions such as **SQL splitting** and **co
|
|||||||
| Flink SQL | ✅ | ✅ |
|
| Flink SQL | ✅ | ✅ |
|
||||||
| Spark SQL | ✅ | ✅ |
|
| Spark SQL | ✅ | ✅ |
|
||||||
| Hive SQL | ✅ | ✅ |
|
| Hive SQL | ✅ | ✅ |
|
||||||
| PL/SQL | WIP | WIP |
|
| PL/SQL | WIP | WIP |
|
||||||
| Postgre SQL | WIP | WIP |
|
| PostgreSQL | ✅ | ✅ |
|
||||||
| Trino SQL | ✅ | ✅ |
|
| Trino SQL | ✅ | ✅ |
|
||||||
|
|
||||||
>Tips: This project is the default for Javascript language, also you can try to compile it to other languages if you need.
|
>Tips: This project is the default for Javascript language, also you can try to compile it to other languages if you need.
|
||||||
@ -68,13 +68,13 @@ We recommend learning the Fundamentals usage before continuing. The dt-sql-parse
|
|||||||
import { GenericSQL, FlinkSQL, SparkSQL, HiveSQL, PLSQL, PostgresSQL, TrinoSQL } from 'dt-sql-parser';
|
import { GenericSQL, FlinkSQL, SparkSQL, HiveSQL, PLSQL, PostgresSQL, TrinoSQL } from 'dt-sql-parser';
|
||||||
```
|
```
|
||||||
|
|
||||||
Before employing syntax validation, code completion, and other features, it is necessary to instantiate the Parser of the relevant SQL type.
|
Before using syntax validation, code completion, and other features, it is necessary to instantiate the Parser of the relevant SQL type.
|
||||||
For instance, one can consider using `GenericSQL` as an example:
|
For instance, one can consider using `GenericSQL` as an example:
|
||||||
```javascript
|
```javascript
|
||||||
const parser = new GenericSQL();
|
const parser = new GenericSQL();
|
||||||
```
|
```
|
||||||
|
|
||||||
The following usage examples will utilize the `GenericSQL`, and the Parser for other SQL types will be employed in a similar manner as `GenericSQL`.
|
The following usage examples will utilize the `GenericSQL`, and the Parser for other SQL types will be used in a similar manner as `GenericSQL`.
|
||||||
|
|
||||||
### Syntax Validation
|
### Syntax Validation
|
||||||
```javascript
|
```javascript
|
||||||
|
Loading…
Reference in New Issue
Block a user