SQL Translator

Background

The SQL translator 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. sqlTranslator:
  2. type: # SQL translator type
  3. useOriginalSQLWhenTranslatingFailed: # Whether use original SQL when translating failed

Procedure

  1. Set SQL translator type.
  2. Set useOriginalSQLWhenTranslatingFailed to decide whether use original SQL when translating failed.

Sample

  1. sqlTranslator:
  2. type: Native
  3. useOriginalSQLWhenTranslatingFailed: true