public final class ShardingDataSourceFactory extends Object
| Constructor and Description |
|---|
ShardingDataSourceFactory() |
| Modifier and Type | Method and Description |
|---|---|
static DataSource |
createDataSource(Map<String,DataSource> dataSourceMap,
org.apache.shardingsphere.api.config.sharding.ShardingRuleConfiguration shardingRuleConfig,
Properties props)
Create sharding data source.
|
public static DataSource createDataSource(Map<String,DataSource> dataSourceMap, org.apache.shardingsphere.api.config.sharding.ShardingRuleConfiguration shardingRuleConfig, Properties props) throws SQLException
dataSourceMap - data source mapshardingRuleConfig - rule configuration for databases and tables shardingprops - properties for data sourceSQLException - SQL exceptionCopyright © 2020 The Apache Software Foundation. All rights reserved.