Logo
Shadow Database

Shadow Database #

Configuration Entry #

Class name: org.apache.shardingsphere.shadow.api.config.ShadowRuleConfiguration

configurable properties:

NameData typeDescriptionDefault value
dataSourcesMap<String, ShadowDataSourceConfiguration>Shadow data source mapping name and configuration
tablesMap<String, ShadowTableConfiguration>Shadow table name and configuration
defaultShadowAlgorithmNameStringDefault shadow algorithm name
shadowAlgorithmsMap<String, ShardingSphereAlgorithmConfiguration>Shadow algorithm name and configurationNone

Shadow Data Source Configuration #

Class name: org.apache.shardingsphere.shadow.api.config.datasource.ShadowDataSourceConfiguration

configurable properties:

NameData typeDescription
sourceDataSourceNameStringProduction data source name
shadowDataSourceNameStringShadow data source name

Shadow Table Configuration #

Class name: org.apache.shardingsphere.shadow.api.config.table.ShadowTableConfiguration

configurable properties:

NameData typeDescription
dataSourceNamesCollection<String>Shadow table association shadow data source mapping name list
shadowAlgorithmNamesCollection<String>Shadow table association shadow algorithm name list

Shadow Algorithm Configuration #

For details of shadow algorithm types, please refer toBuilt-in shadow algorithm list