mirror of
https://github.com/sogou/workflow.git
synced 2026-02-08 01:33:17 +08:00
Update tutorial-12-mysql_cli.md
This commit is contained in:
@@ -266,7 +266,7 @@ WFMySQLConnection相当于一个二级工厂,我们约定任何工厂对象的
|
||||
~~~cpp
|
||||
WFMySQLConnection *conn = new WFMySQLConnection(1234);
|
||||
conn->init(url);
|
||||
auto *task = conn->create_query_task("SELECT * from table", my_callback);
|
||||
auto *task = conn->create_query_task("SELECT * from table", my_callback);
|
||||
conn->deinit();
|
||||
delete conn;
|
||||
task->start();
|
||||
|
||||
Reference in New Issue
Block a user