MCPcopy Create free account
hub / github.com/4paradigm/OpenMLDB / PrintProcedureInfo

Function PrintProcedureInfo

src/cmd/sql_cmd.h:303–312  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

301}
302
303void 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
314void HandleCmd(const hybridse::node::CmdNode *cmd_node) {
315 switch (cmd_node->GetCmdType()) {

Callers 1

HandleCmdFunction · 0.85

Calls 2

PrintItemsFunction · 0.85
PrintProcedureSchemaFunction · 0.85

Tested by

no test coverage detected