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. sqlStatementCache: # SQL statement local cache
  3. initialCapacity: # Initial capacity of local cache
  4. maximumSize: # Maximum capacity of local cache
  5. parseTreeCache: # Parse tree local cache
  6. initialCapacity: # Initial capacity of local cache
  7. 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. sqlStatementCache:
  3. initialCapacity: 2000
  4. maximumSize: 65535
  5. parseTreeCache:
  6. initialCapacity: 128
  7. maximumSize: 1024