You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by GitBox <gi...@apache.org> on 2022/07/14 04:02:08 UTC

[GitHub] [shardingsphere] isHuangXin opened a new pull request, #19127: Dev distsql

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
   ![image](https://user-images.githubusercontent.com/57054352/178895143-cb939e23-f7c3-46bf-8a30-87754911351b.png)
   
   - The converted DistSQL statement
   ![image](https://user-images.githubusercontent.com/57054352/178895627-98976170-ac38-4c8f-a834-3de21855eca0.png)
   


-- 
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: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [shardingsphere] isHuangXin closed pull request #19127: Dev DistSQL: ADD RESOURCE

Posted by GitBox <gi...@apache.org>.
isHuangXin closed pull request #19127: Dev DistSQL: ADD RESOURCE
URL: https://github.com/apache/shardingsphere/pull/19127


-- 
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: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org