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

  1. sqlParser:
  2. sqlCommentParseEnabled: # Whether to parse SQL comments
  3. sqlStatementCache: # SQL statement local cache
  4. initialCapacity: # Initial capacity of local cache
  5. maximumSize: # Maximum capacity of local cache
  6. parseTreeCache: # Parse tree local cache
  7. initialCapacity: # Initial capacity of local cache
  8. maximumSize: # Maximum capacity of local cache

Procedure

  1. Set local cache configuration.
  2. Set parser configuration.
  3. Use a parsing engine to parse SQL.

Sample

  1. sqlParser:
  2. sqlCommentParseEnabled: true
  3. sqlStatementCache:
  4. initialCapacity: 2000
  5. maximumSize: 65535
  6. parseTreeCache:
  7. initialCapacity: 128
  8. maximumSize: 1024