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 10:52:34 UTC

[GitHub] [shardingsphere] isHuangXin opened a new pull request, #19155: Dev DistSQL: CREATE DATABASE & ADD RESOURCE

isHuangXin opened a new pull request, #19155:
URL: https://github.com/apache/shardingsphere/pull/19155

   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 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/178965167-6fcf103c-6e7f-436a-be03-bae44bdc4d0b.png)
   
   - The converted DistSQL statement
   ![image](https://user-images.githubusercontent.com/57054352/178965229-a64558a9-8be5-41bf-b73f-4c38d41e7948.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 #19155: Dev DistSQL: CREATE DATABASE & ADD RESOURCE

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


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