| 41 | MiniCluster* mc_ = nullptr; |
| 42 | std::shared_ptr<SQLRouter> router_ = std::shared_ptr<SQLRouter>(); |
| 43 | static 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 | |
| 52 | static bool IsSupportMode(const std::string& mode) { |
| 53 | if (mode.find("rtidb-unsupport") != std::string::npos || |
no test coverage detected