From ef394319226b03d0707133004baedeec36762871 Mon Sep 17 00:00:00 2001 From: Pace2Car Date: Wed, 20 Sep 2023 17:27:04 +0800 Subject: [PATCH] Fix document --- .../shardingsphere-jdbc/yaml-config/data-source.en.md | 10 +++++----- .../shardingsphere-proxy/yaml-config/data-source.cn.md | 3 +-- .../shardingsphere-proxy/yaml-config/data-source.en.md | 7 +++---- 3 files changed, 9 insertions(+), 11 deletions(-) diff --git a/docs/document/content/user-manual/shardingsphere-jdbc/yaml-config/data-source.en.md b/docs/document/content/user-manual/shardingsphere-jdbc/yaml-config/data-source.en.md index d5bf857296fd5..e8595212d21f3 100644 --- a/docs/document/content/user-manual/shardingsphere-jdbc/yaml-config/data-source.en.md +++ b/docs/document/content/user-manual/shardingsphere-jdbc/yaml-config/data-source.en.md @@ -6,7 +6,7 @@ chapter = true ## Background -ShardingSphere-JDBC Supports all JDBC drivers and database connection pools. +ShardingSphere-JDBC Supports all JDBC drivers and data source connection pools. In this example, the database driver is MySQL, and the connection pool is HikariCP, which can be replaced with other database drivers and connection pools. When using ShardingSphere JDBC, the property name of the JDBC pool depends on the definition of the respective JDBC pool and is not defined by ShardingSphere. For related processing, please refer to the class org.apache.shardingsphere.infra.datasource.pool.creator.DataSourcePoolCreator. @@ -18,10 +18,10 @@ For example, with Alibaba Druid 1.2.9, using url instead of jdbcUrl in the examp dataSources: # Data sources configuration, multiple available : # Data source name dataSourceClassName: # Data source class name - driverClassName: # The database driver class name is subject to the configuration of the database connection pool itself - jdbcUrl: # The database URL connection is subject to the configuration of the database connection pool itself - username: # Database user name, subject to the configuration of the database connection pool itself - password: # The database password is subject to the configuration of the database connection pool itself + driverClassName: # The database driver class name is subject to the configuration of the data source connection pool itself + jdbcUrl: # The database URL connection is subject to the configuration of the data source connection pool itself + username: # Database username, subject to the configuration of the data source connection pool itself + password: # The database password is subject to the configuration of the data source connection pool itself # ... Other properties of data source pool ``` ## Sample diff --git a/docs/document/content/user-manual/shardingsphere-proxy/yaml-config/data-source.cn.md b/docs/document/content/user-manual/shardingsphere-proxy/yaml-config/data-source.cn.md index a4278fed27d34..a66406cd32a45 100644 --- a/docs/document/content/user-manual/shardingsphere-proxy/yaml-config/data-source.cn.md +++ b/docs/document/content/user-manual/shardingsphere-proxy/yaml-config/data-source.cn.md @@ -16,8 +16,7 @@ ShardingSphere-Proxy 支持常见的数据库连接池: HikariCP、C3P0、DBCP dataSources: # 数据源配置,可配置多个 : # 数据源名称 dataSourceClassName: # 数据源连接池完整类名 - driverClassName: # 数据库驱动类名,以数据库连接池自身配置为准 - jdbcUrl: # 数据库 URL 连接,以数据库连接池自身配置为准 + url: # 数据库 URL 连接,以数据库连接池自身配置为准 username: # 数据库用户名,以数据库连接池自身配置为准 password: # 数据库密码,以数据库连接池自身配置为准 # ... 数据库连接池的其它属性 diff --git a/docs/document/content/user-manual/shardingsphere-proxy/yaml-config/data-source.en.md b/docs/document/content/user-manual/shardingsphere-proxy/yaml-config/data-source.en.md index 15708a6400f9a..01f032cdde19a 100644 --- a/docs/document/content/user-manual/shardingsphere-proxy/yaml-config/data-source.en.md +++ b/docs/document/content/user-manual/shardingsphere-proxy/yaml-config/data-source.en.md @@ -6,9 +6,9 @@ chapter = true ## Background -ShardingSphere-Proxy supports common database connection pools: HikariCP, C3P0, DBCP. +ShardingSphere-Proxy supports common data source connection pools: HikariCP, C3P0, DBCP. -The connection pool can be specified through the parameter `dataSourceClassName`. When not specified, the default database connection pool is HikariCP. +The connection pool can be specified through the parameter `dataSourceClassName`. When not specified, the default data source connection pool is HikariCP. ## Parameters @@ -16,8 +16,7 @@ The connection pool can be specified through the parameter `dataSourceClassName` dataSources: # Data sources configuration, multiple available : # Data source name dataSourceClassName: # Data source connection pool full class name - driverClassName: # The database driver class name is subject to the configuration of the database connection pool itself - jdbcUrl: # The database URL connection is subject to the configuration of the database connection pool itself + url: # The database URL connection is subject to the configuration of the database connection pool itself username: # Database user name, subject to the configuration of the database connection pool itself password: # The database password is subject to the configuration of the database connection pool itself # ... Other properties of data source pool