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

Function GetNewSQLRouter

src/tablet/sql_cluster_availability_test.cc:67–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

65};
66
67std::shared_ptr<fedb::sdk::SQLRouter> GetNewSQLRouter() {
68 ::hybridse::vm::Engine::InitializeGlobalLLVM();
69 fedb::sdk::SQLRouterOptions sql_opt;
70 sql_opt.zk_cluster = FLAGS_zk_cluster;
71 sql_opt.zk_path = FLAGS_zk_root_path;
72 sql_opt.enable_debug = true;
73 return fedb::sdk::NewClusterSQLRouter(sql_opt);
74}
75
76void StartNameServer(brpc::Server& server) { //NOLINT
77 NameServerImpl* nameserver = new NameServerImpl();

Callers 1

TEST_FFunction · 0.70

Calls 1

NewClusterSQLRouterFunction · 0.85

Tested by

no test coverage detected