Apache ShardingSphere 5.0.0-alpha Documentthe following SQL: SELECT id, name FROM t_user WHERE status = 'ACTIVE' AND age > 18 Its parsing AST (Abstract Syntax Tree) is this: To better understand, the Token of keywords in abstract syntax tree adopts ANTLR as a generator for the SQL parsing engine, and uses Visit to obtain SQL Statement from AST. Starting from version 5.0.x, the architecture of the parsing engine has been refactored. At the same directly obtain the parsing results of the same SQL to improve parsing effi‐ ciency by putting the AST obtained from the first parsing into the cache. Therefore, we recommend that users adopt PreparedStatement0 码力 | 311 页 | 2.09 MB | 1 年前3
Apache ShardingSphere 5.0.0 DocumentShardingSphere document, v5.0.0 6.1.2 SQLVisitorFacade SPI Name Description SQLVisitorFacade SQL AST visitor facade Implementation Class Description MySQLS tatementSQLVisitorFacade SQL visitor of statement status = 'ACTIVE' AND age > 18 7.1. Sharding 235 Apache ShardingSphere document, v5.0.0 Its parsing AST (Abstract Syntax Tree) is this: To better understand, the Token of keywords in abstract syntax tree adopts ANTLR as a generator for the SQL parsing engine, and uses Visit to obtain SQL Statement from AST. Starting from version 5.0.x, the architecture of the parsing engine has been refactored. At the same0 码力 | 403 页 | 3.15 MB | 1 年前3
Apache ShardingSphere 5.1.1 DocumentSQL parser facade for openGauss 6.5.2 SQLVisitorFacade SPI Name Description SQLVisitorFacade SQL AST visitor facade Implementation Class Description MySQLS tatementSQLVisitorFacade SQL visitor of statement the following SQL: SELECT id, name FROM t_user WHERE status = 'ACTIVE' AND age > 18 Its parsing AST (Abstract Syntax Tree) is this: 7.2. Sharding 245 Apache ShardingSphere document, v5.1.1 To better adopts ANTLR as a generator for the SQL parsing engine, and uses Visit to obtain SQL Statement from AST. Starting from version 5.0.x, the architecture of the parsing engine has been refactored. At the same0 码力 | 458 页 | 3.43 MB | 1 年前3
Apache ShardingSphere 5.1.2 DocumentSQL parser facade for openGauss 6.5.2 SQLVisitorFacade SPI Name Description SQLVisitorFacade SQL AST visitor facade Implementation Class Description MySQLS tatementSQLVisitorFacade SQL visitor of statement the following SQL: SELECT id, name FROM t_user WHERE status = 'ACTIVE' AND age > 18 Its parsing AST (Abstract Syntax Tree) is this: 7.2. Sharding 256 Apache ShardingSphere document, v5.1.2 To better adopts ANTLR as a generator for the SQL parsing engine, and uses Visit to obtain SQL Statement from AST. Starting from version 5.0.x, the architecture of the parsing engine has been refactored. At the same0 码力 | 503 页 | 3.66 MB | 1 年前3
Apache ShardingSphere 5.2.0 Documentstatus = 'ACTIVE' AND age > 18 After the above SQL is parsed, its AST (Abstract Syntax Tree) is as follows: The tokens for keywords in the AST are green, while the tokens for variables are red, and gray ones uses Visit to obtain SQL statements from the AST. Since V5.0.x, the architecture of the parsing engine has been restructured and adjusted. Moreover, the AST obtained from the first parsing is stored in ere-sql-parser-mysql${project.version} • Obtain AST CacheOption cacheOption = new CacheOption(128, 1024L); SQLParserEngine parserEngine = new SQLParserEngine(sql0 码力 | 483 页 | 4.27 MB | 1 年前3
Apache ShardingSphere 5.2.1 Documentstatus = 'ACTIVE' AND age > 18 After the above SQL is parsed, its AST (Abstract Syntax Tree) is as follows: The tokens for keywords in the AST are green, while the tokens for variables are red, and gray ones uses Visit to obtain SQL statements from the AST. Since V5.0.x, the architecture of the parsing engine has been restructured and adjusted. Moreover, the AST obtained from the first parsing is stored in ere-sql-parser-mysql${project.version} • Obtain AST CacheOption cacheOption = new CacheOption(128, 1024L); SQLParserEngine parserEngine = new SQLParserEngine(sql0 码力 | 523 页 | 4.51 MB | 1 年前3
Apache ShardingSphere 5.4.1 DocumentApache ShardingSphere document After the above SQL is parsed, its AST (Abstract Syntax Tree) is as follows: The tokens for keywords in the AST are green, while the tokens for variables are red, and gray ones uses Visit to obtain SQL statements from the AST. Since V5.0.x, the architecture of the parsing engine has been restructured and adjusted. Moreover, the AST obtained from the first parsing is stored in${project.version} 12.4. Sharding 501 Apache ShardingSphere document • Obtain AST CacheOption cacheOption = new CacheOption(128, 1024L); SQLParserEngine parserEngine = new SQLParserEngine("MySQL"0 码力 | 572 页 | 3.73 MB | 1 年前3
Apache ShardingSphere v5.5.0 documentApache ShardingSphere document After the above SQL is parsed, its AST (Abstract Syntax Tree) is as follows: The tokens for keywords in the AST are green, while the tokens for variables are red, and gray ones uses Visit to obtain SQL statements from the AST. Since V5.0.x, the architecture of the parsing engine has been restructured and adjusted. Moreover, the AST obtained from the first parsing is stored in ere-parser-sql-mysql${project.version} • Obtain AST CacheOption cacheOption = new CacheOption(128, 1024L); SQLParserEngine parserEngine = new SQLParserEngine("MySQL"0 码力 | 602 页 | 3.85 MB | 1 年前3
Apache ShardingSphere 中文文档 5.0.0-alpha第三代 SQL 解析器从 3.0.x 版本开始,尝试使用 ANTLR 作为 SQL 解析引擎的生成器,并采用 Visit 的方 式从 AST 中获取 SQL Statement。从 5.0.x 版本开始,解析引擎的架构已完成重构调整,同时通过将第一 次解析的得到的 AST 放入缓存,方便下次直接获取相同 SQL 的解析结果,来提高解析效率。因此我们建 议用户采用 PreparedStatement0 码力 | 301 页 | 3.44 MB | 1 年前3
Apache ShardingSphere 中文文档 5.0.0Visit 的方 7.1. 数据分片 226 Apache ShardingSphere document, v5.0.0 式从 AST 中获取 SQL Statement。从 5.0.x 版本开始,解析引擎的架构已完成重构调整,同时通过将第一 次解析得到的 AST 放入缓存,方便下次直接获取相同 SQL 的解析结果,来提高解析效率。因此我们建议 用户采用 PreparedStatement 这种0 码力 | 385 页 | 4.26 MB | 1 年前3
共 17 条
- 1
- 2













