Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: update ob-sql-parser's document #1362

Merged
merged 1 commit into from
Jan 9, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions libs/ob-sql-parser/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# OB-SQL-PARSER
# ob-sql-parser

## 什么是 OB-SQL-PARSER
## 什么是 ob-sql-parser

`ob-sql-parser`是基于`antlr4`构建的 SQL 解析器,它的主要功能是将 SQL 语句文本翻译成 Java Pojo 类。

Expand Down Expand Up @@ -141,15 +141,15 @@ Assert.assertEquals("p1_1", subPartitionElement.getRelation());

> Q: 支持哪个版本的 OceanBase 语法?
目前,`ob-sql-parser`是基于 OceanBase 3.2.3 版本的语法构建出来的,所有该版本及该版本之前的语法都是支持的。该版本之后新增或调整的语法可能会存在不支持问题,出现这种情况会当成缺陷进行修复
目前,`ob-sql-parser`兼容 OceanBase 4.2.1 版本的语法

> Q: 支持哪些 OceanBase 方言?
目前,`ob-sql-parser`支持 OceanBase MySQL 以及 OceanBase Oracle 两种方言类型。

> Q: 对不同 SQL 句型的支持现状是怎么样的?
截止到`1.1.1-SNAPSHOT`版本,支持将所有类型的 SQL 转化为 AST;从 SQL 文本到 Java Pojo 类的转化来说,目前支持力度如下:
截止目前,支持将所有类型的 SQL 转化为 AST;从 SQL 文本到 Java Pojo 类的转化来说,目前支持力度如下:

|SQL 句型|支持力度|备注|
|:----|:----|:----|
Expand Down