| 301 | } |
| 302 | |
| 303 | void PrintProcedureInfo(const hybridse::sdk::ProcedureInfo& sp_info) { |
| 304 | std::vector<std::pair<std::string, std::string>> vec; |
| 305 | std::pair<std::string, std::string> pair = std::make_pair(sp_info.GetDbName(), sp_info.GetSpName()); |
| 306 | vec.push_back(pair); |
| 307 | PrintItems(vec, std::cout); |
| 308 | std::vector<std::string> items{sp_info.GetSql()}; |
| 309 | PrintItems(std::cout, "SQL", items); |
| 310 | PrintProcedureSchema("Input Schema", sp_info.GetInputSchema(), std::cout); |
| 311 | PrintProcedureSchema("Output Schema", sp_info.GetOutputSchema(), std::cout); |
| 312 | } |
| 313 | |
| 314 | void HandleCmd(const hybridse::node::CmdNode *cmd_node) { |
| 315 | switch (cmd_node->GetCmdType()) { |
no test coverage detected