You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by GitBox <gi...@apache.org> on 2021/03/15 06:43:07 UTC

[GitHub] [shardingsphere] yu199195 commented on a change in pull request #9660: Add JAVA-API each versions of the document

yu199195 commented on a change in pull request #9660:
URL: https://github.com/apache/shardingsphere/pull/9660#discussion_r594082724



##########
File path: docs/document/content/user-manual/shardingsphere-jdbc/configuration/java-api/change-history.en.md
##########
@@ -3,7 +3,7 @@ title = "Change History"
 weight = 7
 +++
 
-## 5.0.0-alpha
+## ShardingSphere-5.0.0-alpha

Review comment:
       please remove it

##########
File path: docs/document/content/user-manual/shardingsphere-jdbc/configuration/java-api/change-history.cn.md
##########
@@ -31,4 +31,206 @@ weight = 7
 | replicaDataSourceNames (+) | Collection\<String\> | 从库数据源名称列表   | -              |
 | loadBalancerName (?)       | String               | 从库负载均衡算法名称 | 轮询负载均衡算法 |
 
-算法类型的详情,请参见[内置负载均衡算法列表](/cn/user-manual/shardingsphere-jdbc/configuration/built-in-algorithm/load-balance)。
+算法类型的详情,请参见[内置负载均衡算法列表](/docs/document/content/user-manual/shardingsphere-jdbc/configuration/built-in-algorithm/load-balance.cn.md)。
+
+
+
+## ShardingSphere-4.x
+
+### 读写分离
+
+#### MasterSlaveDataSourceFactory
+
+读写分离的数据源创建工厂。
+
+| *名称*                | *数据类型*                   | *说明*               |
+| :-------------------- | :--------------------------- | :------------------- |
+| dataSourceMap         | Map<String, DataSource>      | 数据源与其名称的映射 |
+| masterSlaveRuleConfig | MasterSlaveRuleConfiguration | 读写分离规则         |
+| props (?)             | Properties                   | 属性配置             |
+
+#### MasterSlaveRuleConfiguration
+
+读写分离规则配置对象。
+
+| *名称*                   | *数据类型*                      | *说明*             |
+| :----------------------- | :------------------------------ | :----------------- |
+| name                     | String                          | 读写分离数据源名称 |
+| masterDataSourceName     | String                          | 主库数据源名称     |
+| slaveDataSourceNames     | Collection<String>              | 从库数据源名称列表 |
+| loadBalanceAlgorithm (?) | MasterSlaveLoadBalanceAlgorithm | 从库负载均衡算法   |
+
+#### Properties
+
+属性配置项,可以为以下属性。
+
+| *名称*                             | *数据类型* | *说明*                                                 |
+| :--------------------------------- | :--------- | :----------------------------------------------------- |
+| sql.show (?)                       | boolean    | 是否打印SQL解析和改写日志,默认值: false               |
+| executor.size (?)                  | int        | 用于SQL执行的工作线程数量,为零则表示无限制。默认值: 0 |
+| max.connections.size.per.query (?) | int        | 每个物理数据库为每次查询分配的最大连接数量。默认值: 1  |
+| check.table.metadata.enabled (?)   | boolean    | 是否在启动时检查分表元数据一致性,默认值: false        |
+
+
+

Review comment:
       remove this line




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org