Skip to content

Commit

Permalink
Fix document
Browse files Browse the repository at this point in the history
  • Loading branch information
Pace2Car committed Sep 20, 2023
1 parent 33d9cd5 commit ef39431
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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 <data-source-name> available
<data_source_name>: # 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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ ShardingSphere-Proxy 支持常见的数据库连接池: HikariCP、C3P0、DBCP
dataSources: # 数据源配置,可配置多个 <data-source-name>
<data_source_name>: # 数据源名称
dataSourceClassName: # 数据源连接池完整类名
driverClassName: # 数据库驱动类名,以数据库连接池自身配置为准
jdbcUrl: # 数据库 URL 连接,以数据库连接池自身配置为准
url: # 数据库 URL 连接,以数据库连接池自身配置为准
username: # 数据库用户名,以数据库连接池自身配置为准
password: # 数据库密码,以数据库连接池自身配置为准
# ... 数据库连接池的其它属性
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,17 @@ 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

```yaml
dataSources: # Data sources configuration, multiple <data-source-name> available
<data_source_name>: # 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
Expand Down

0 comments on commit ef39431

Please sign in to comment.