MCPcopy Create free account
hub / github.com/KangLin/RabbitRemoteControl / OnInitializeDatabase

Method OnInitializeDatabase

Src/Database/Database.cpp:288–304  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

286}
287
288bool CDatabase::OnInitializeDatabase()
289{
290 bool bRet = false;
291 if(!m_pPara) {
292 bRet = OnInitializeSqliteDatabase();
293 return bRet;
294 }
295 if(m_pPara->GetType() == "QSQLITE")
296 bRet = OnInitializeSqliteDatabase();
297 else if(m_pPara->GetType() == "QMYSQL" || m_pPara->GetType() == "QODBC") {
298 bRet = OnInitializeMySqlDatabase();
299 } else {
300 SetError("Don't support:" + m_pPara->GetType());
301 qWarning(log) << GetError();
302 }
303 return bRet;
304}
305
306bool CDatabase::OnInitializeSqliteDatabase()
307{

Callers

nothing calls this directly

Calls 1

GetTypeMethod · 0.45

Tested by

no test coverage detected