Shadow DB

Configuration Item Explanation

Namespace: http://shardingsphere.apache.org/schema/shardingsphere/shadow/shadow-5.0.0.xsd

<shadow:rule />

NameTypeDescription
idAttributeSpring Bean Id
enableAttributeShadow DB switch. Optional values: true/false, the default is false
data-source(?)TagShadow data source configuration
default-shadow-algorithm-name(?)TagDefault shadow algorithm configuration
shadow-table(?)TagShadow table configuration

<shadow:data-source />

NameTypeDescription
idAttributeSpring Bean Id
source-data-source-nameAttributeProduction data source name
shadow-data-source-nameAttributeShadow data source name

<shadow:default-shadow-algorithm-name /> | Name | Type | Description | | —– | —— | —— | | name | Attribute | Default shadow algorithm name |

<shadow:shadow-table />

NameTypeDescription
nameAttributeShadow table name
data-sourcesAttributeShadow table location shadow data source names (multiple values are separated by “,”)
algorithm (?)TagShadow table location shadow algorithm configuration

<shadow:algorithm />

NameTypeDescription
shadow-algorithm-refAttributeShadow table location shadow algorithm name

<shadow:shadow-algorithm />

NameTypeDescription
idAttributeShadow algorithm name
typeAttributeShadow algorithm type
props (?)AttributeShadow algorithm property configuration