Shadow DB

Root Configuration

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

Attributes:

NameDataTypeDescriptionDefault 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 configuration

Shadow Data Source Configuration

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

Attributes:

NameDataTypeDescription
sourceDataSourceNameStringProduction data source name
shadowDataSourceNameStringShadow data source name

Shadow Table Configuration

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

Attributes:

NameDataTypeDescription
dataSourceNamesCollection<String>Shadow table location shadow data source mapping names
shadowAlgorithmNamesCollection<String>Shadow table location shadow algorithm names

Shadow Algorithm Configuration

Please refer to Built-in Shadow Algorithm List.