CREATE SHARDING AUDITOR

Description

The CREATE SHARDING AUDITOR syntax is used to add a sharding key auditor for the currently selected logic database

Syntax

  1. CreateShardingAlgorithm ::=
  2. 'CREATE' 'SHARDING' 'AUDITOR' auditorName '(' algorithmDefinition ')'
  3. algorithmDefinition ::=
  4. 'TYPE' '(' 'NAME' '=' algorithmType ( ',' 'PROPERTIES' '(' propertyDefinition ')' )?')'
  5. propertyDefinition ::=
  6. ( key '=' value ) ( ',' key '=' value )*
  7. auditorName ::=
  8. identifier
  9. algorithmType ::=
  10. string

Supplement

  • algorithmType is the sharding audit algorithm type. For detailed sharding audit algorithm type information, please refer to SHARDING AUDIT ALGORITHM.

Example

Create a sharding auditor

  1. CREATE SHARDING AUDITOR sharding_key_required_auditor (
  2. TYPE(NAME="DML_SHARDING_CONDITIONS", PROPERTIES("a"="b"))
  3. );

Reserved word

CREATE, SHARDING, AUDITOR, TYPE, NAME, PROPERTIES