forked from gnblao/workflow
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
34 changed files
with
622 additions
and
228 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,6 +16,8 @@ After startup, you can directly enter MySQL command in the terminal to interact | |
|
||
mysql://username:password@host:port/dbname?character\_set=charset&character\_set\_results=charset | ||
|
||
- set scheme to be **mysqls://** for accessing MySQL with SSL connnection (MySQL server 5.7 or above is required). | ||
|
||
- fill in the username and the password for the MySQL database; | ||
|
||
- the default port number is 3306; | ||
|
@@ -34,6 +36,8 @@ mysql://root:[email protected] | |
|
||
mysql://@test.mysql.com:3306/db1?character\_set=utf8&character_set_results=utf8 | ||
|
||
mysqls://localhost/db1?character\_set=big5 | ||
|
||
# Creating and starting a MySQL task | ||
|
||
You can use WFTaskFactory to create a MySQL task. The usage of creating interface and callback functions are similar to other tasks in workflow: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,6 +15,8 @@ | |
|
||
mysql://username:password@host:port/dbname?character_set=charset&character_set_results=charset | ||
|
||
- 如果以SSL连接访问MySQL,则scheme设为**mysqls://**。MySQL server 5.7及以上支持; | ||
|
||
- username和password按需填写; | ||
|
||
- port默认为3306; | ||
|
@@ -33,6 +35,8 @@ mysql://root:[email protected] | |
|
||
mysql://@test.mysql.com:3306/db1?character_set=utf8&character_set_results=utf8 | ||
|
||
mysqls://localhost/db1?character\_set=big5 | ||
|
||
# 创建并启动MySQL任务 | ||
|
||
用户可以使用WFTaskFactory创建MySQL任务,创建接口与回调函数的用法都与workflow其他任务类似: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.