CREATE SHARDING AUDITOR
语法用于为当前所选的逻辑库添加分片审计生成器
CreateShardingAlgorithm ::=
'CREATE' 'SHARDING' 'AUDITOR' auditorName '(' algorithmDefinition ')'
algorithmDefinition ::=
'TYPE' '(' 'NAME' '=' algorithmType ( ',' 'PROPERTIES' '(' propertyDefinition ')' )?')'
propertyDefinition ::=
( key '=' value ) ( ',' key '=' value )*
auditorName ::=
identifier
algorithmType ::=
string
algorithmType
为分片审计算法类型,详细的分片审计生成算法类型信息请参考分片审计算法类型。CREATE SHARDING AUDITOR sharding_key_required_auditor (
TYPE(NAME="DML_SHARDING_CONDITIONS", PROPERTIES("a"="b"))
);
CREATE
、SHARDING
、AUDITOR
、TYPE
、NAME
、PROPERTIES