terrymanu opened a new issue, #18980:
URL: https://github.com/apache/shardingsphere/issues/18980
The current DataSourceSegment is composed by url based and hostname+port
based.
The `url` and `hostname, port` can not appear together.
The scenario of `url` is:
```sql
ADD/ALTER RESOURCE foo_resource (
URL=jdbc:mysql://127.0.0.1:3306/foo_ds,
USER=root,
PASSWORD=root
);
```
The scenario of `hostname, port` is:
```sql
ADD/ALTER RESOURCE bar_resource (
HOST=127.0.0.1,
PORT=3306,
DB=bar_ds,
USER=root,
PASSWORD=root
);
```
It is better to split DataSourceSegment as 2 class:
`URLBasedDataSourceSegment` and `HostnameAndPortBasedDataSourceSegment`.
--
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]