Shadow DB

Configuration Item Explanation

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

<shadow:rule />

Name Type Description
id Attribute Spring Bean Id
enable Attribute Shadow function switch. Optional values: true/false, the default is false
data-source(?) Tag Shadow data source configuration
shadow-table(?) Tag Shadow table configuration

<shadow:data-source />

Name Type Description
id Attribute Spring Bean Id
source-data-source-name Attribute Production data source name
shadow-data-source-name Attribute Shadow data source name

<shadow:shadow-table />

Name Type Description
name Attribute Shadow table name
data-sources Attribute Shadow table location shadow data source names (multiple values are separated by “,")
algorithm (?) Tag Shadow table location shadow algorithm configuration

<shadow:algorithm />

Name Type Description
shadow-algorithm-ref Attribute Shadow table location shadow algorithm name

<shadow:shadow-algorithm />

名称 类型 说明
id 属性 Shadow algorithm name
type 属性 Shadow algorithm type
props (?) 标签 Shadow algorithm property configuration