isHuangXin opened a new pull request, #19127:
URL: https://github.com/apache/shardingsphere/pull/19127
ADD RESOURCE dataSource #17939
In this PR, I finished parsing the **CREATE DATABASE** and **ADD RESOURCE**
in the yaml file and generating the corresponding distsql statement.
Several situations have been considered in my implementation, which will be
explained with screenshots next.
- If url exists, read url directly instead of host, port, db
- If the url does not exist, read host, port, db directly
- If properties exist, read connectionTimeoutMilliseconds under properties,
etc...
- If properties does not exist, directly read connectionTimeoutMilliseconds,
etc...
**Finally, the result of running my code is**
- The yaml file that needs to be converted

- The converted DistSQL statement

--
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]