MCPcopy Create free account
hub / github.com/aixed/WeChat-Hook / getDatabaseHandle

Method getDatabaseHandle

xdb/db_mgr.cpp:221–227  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

219 }
220
221 LPVOID DatabaseMgr::getDatabaseHandle(const std::string& dbname)
222 {
223 auto& dbs = searchDatabases();
224 if (m_dbs.find(dbname) == m_dbs.end())
225 return nullptr;
226 return m_dbs[dbname];
227 }
228
229 nlohmann::ordered_json DatabaseMgr::getDatabaseInfo() {
230 nlohmann::ordered_json jdbs = nlohmann::ordered_json::array();

Callers

nothing calls this directly

Calls 2

findMethod · 0.80
endMethod · 0.45

Tested by

no test coverage detected