SQL-parser
Background
The SQL parser YAML configuration is readable and easy to use. The YAML files allow you to separate the code from the configuration, and easily modify the configuration file as needed.
Parameters
sqlParser:
sqlCommentParseEnabled: # Whether to parse SQL comments
sqlStatementCache: # SQL statement local cache
initialCapacity: # Initial capacity of local cache
maximumSize: # Maximum capacity of local cache
parseTreeCache: # Parse tree local cache
initialCapacity: # Initial capacity of local cache
maximumSize: # Maximum capacity of local cache
Procedure
- Set local cache configuration.
- Set parser configuration.
- Use a parsing engine to parse SQL.
Sample
sqlParser:
sqlCommentParseEnabled: true
sqlStatementCache:
initialCapacity: 2000
maximumSize: 65535
parseTreeCache:
initialCapacity: 128
maximumSize: 1024
Related References
当前内容版权归 ShardingSphere 或其关联方所有,如需对内容或内容相关联开源项目进行关注与资助,请访问 ShardingSphere .