tristaZero commented on code in PR #18629:
URL: https://github.com/apache/shardingsphere/pull/18629#discussion_r908129855
##########
examples/shardingsphere-example-generator/src/main/resources/template/proxy/feature/readwrite-splitting.ftl:
##########
@@ -17,10 +17,12 @@
- !READWRITE_SPLITTING
dataSources:
readwrite_ds:
- type: Static
- props:
- write-data-source-name: write_ds
- read-data-source-names: read_ds_0, read_ds_1
+ dataSourceStrategy:
+ staticStrategy:
+ writeDataSourceName: write_ds
+ readDataSourceNames:
Review Comment:
```
- !READWRITE_SPLITTING
dataSources:
readwrite_ds:
staticStrategy:
writeDataSourceName: write_ds
readDataSourceNames:
- read_ds_0
- read_ds_1
loadBalancerName: read_balance
loadBalancers:
read_balance:
type: ROUND_ROBIN
```
--
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]