Logo
SQL Parser

SQL Parser #

Root Configuration #

Class:org.apache.shardingsphere.parser.config.SQLParserRuleConfiguration

Attributes:

nameDataTypeDescription
sqlCommentParseEnabled (?)booleanWhether to parse SQL comments
parseTreeCache (?)CacheOptionParse syntax tree local cache configuration
sqlStatementCache (?)CacheOptionsql statement local cache configuration

Cache option Configuration #

Class:org.apache.shardingsphere.sql.parser.api.CacheOption

Attributes:

nameDataTypeDescriptionDefault Value
initialCapacityintInitial capacity of local cacheparser syntax tree local cache default value 128, SQL statement cache default value 2000
maximumSize(?)longMaximum capacity of local cacheThe default value of local cache for parsing syntax tree is 1024, and the default value of sql statement cache is 65535
concurrencyLevelintLocal cache concurrency level, the maximum number of concurrent updates allowed by threads4