RaigorJiang opened a new pull request #14998:
URL: https://github.com/apache/shardingsphere/pull/14998
Fixes #14814.
### Example
```sql
ADD RESOURCE ds_0 (
HOST=127.0.0.1,
PORT=3306,
DB=demo_ds_0,
USER=root,
PASSWORD=123456,
PROPERTIES("maximumPoolSize"=6,"idleTimeoutMilliseconds"="10000")
), ds_1 (
URL="jdbc:mysql://127.0.0.1:3306/demo_ds_1?serverTimezone=UTC&useSSL=false",
USER=root,PASSWORD=123456,
PROPERTIES("maxPoolSize"=5,"idleTimeout"="30000")
);
```
#### Before
```sql
mysql> SHOW SCHEMA RESOURCES;
+------+-------+-----------+------+-----------+-------------------------------------------------------+
| name | type | host | port | db | attribute
|
+------+-------+-----------+------+-----------+-------------------------------------------------------+
| ds_0 | MySQL | 127.0.0.1 | 3306 | demo_ds_0 |
{"idleTimeoutMilliseconds":"10000","maxPoolSize":"6"} |
| ds_1 | MySQL | 127.0.0.1 | 3306 | demo_ds_1 |
{"idleTimeoutMilliseconds":"30000","maxPoolSize":"5"} |
+------+-------+-----------+------+-----------+-------------------------------------------------------+
2 rows in set (0.10 sec)
```
#### After
```sql
mysql> SHOW SCHEMA RESOURCES;
mysql> show schema resources;
+------+-------+-----------+------+-----------+---------------------------------+---------------------------+---------------------------+---------------+---------------+-----------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| name | type | host | port | db |
connection_timeout_milliseconds | idle_timeout_milliseconds |
max_lifetime_milliseconds | max_pool_size | min_pool_size | read_only |
other_attributes
|
+------+-------+-----------+------+-----------+---------------------------------+---------------------------+---------------------------+---------------+---------------+-----------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| ds_0 | MySQL | 127.0.0.1 | 3306 | demo_ds_0 | 30000
| 10000 | 2100000 | 6 | 1
| false |
{"allowPoolSuspension":false,"autoCommit":true,"healthCheckProperties":{},"initializationFailTimeout":1,"isolateInternalQueries":false,"leakDetectionThreshold":0,"validationTimeout":5000}
|
| ds_1 | MySQL | 127.0.0.1 | 3306 | demo_ds_1 | 30000
| 30000 | 2100000 | 5 | 1
| false |
{"allowPoolSuspension":false,"autoCommit":true,"healthCheckProperties":{},"initializationFailTimeout":1,"isolateInternalQueries":false,"leakDetectionThreshold":0,"validationTimeout":5000}
|
+------+-------+-----------+------+-----------+---------------------------------+---------------------------+---------------------------+---------------+---------------+-----------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
2 rows in set (0.01 sec)
```
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]