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

Method CloseDatabase

Src/Database/Database.cpp:321–332  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

319}
320
321void CDatabase::CloseDatabase()
322{
323 if (!m_bOwner) {
324 QString szErr = "This instance is not the owner of the database, but it is will close the database.";
325 qWarning(log) << szErr;
326 Q_ASSERT_X(m_bOwner, "CDatabase", szErr.toStdString().c_str());
327 }
328 if(m_database.isOpen()) {
329 m_database.close();
330 }
331 QSqlDatabase::removeDatabase(m_szConnectName);
332}
333
334bool CDatabase::ExportToJsonFile(const QString &szFile)
335{

Callers 1

on_pbTest_clickedMethod · 0.80

Calls 1

closeMethod · 0.45

Tested by

no test coverage detected