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

Function GetNewSQLRouter

src/sdk/sql_sdk_test.cc:43–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41MiniCluster* mc_ = nullptr;
42std::shared_ptr<SQLRouter> router_ = std::shared_ptr<SQLRouter>();
43static std::shared_ptr<SQLRouter> GetNewSQLRouter() {
44 SQLRouterOptions sql_opt;
45 sql_opt.zk_cluster = mc_->GetZkCluster();
46 sql_opt.zk_path = mc_->GetZkPath();
47 sql_opt.session_timeout = 30000;
48 sql_opt.enable_debug = hybridse::sqlcase::SqlCase::IsDebug();
49 return NewClusterSQLRouter(sql_opt);
50}
51
52static bool IsSupportMode(const std::string& mode) {
53 if (mode.find("rtidb-unsupport") != std::string::npos ||

Callers 1

mainFunction · 0.70

Calls 3

NewClusterSQLRouterFunction · 0.85
GetZkClusterMethod · 0.80
GetZkPathMethod · 0.80

Tested by

no test coverage detected