MCPcopy Create free account
hub / github.com/altairwei/WizNotePlus / checkTable

Method checkTable

src/database/WizIndexBase.cpp:66–79  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

64}
65
66bool WizIndexBase::checkTable(const QString& strTableName)
67{
68 if (m_db.tableExists(strTableName))
69 return true;
70
71 // create table if not exist
72 CString strFileName = WizPathAddBackslash2(Utils::WizPathResolve::resourcesPath() + "sql") + strTableName.toLower() + ".sql";
73 CString strSQL;
74 if (!WizLoadUnicodeTextFromFile(strFileName, strSQL))
75 return false;
76
77 bool result = execSQL(strSQL);
78 return result;
79}
80
81bool WizIndexBase::execSQL(const CString& strSQL)
82{

Callers

nothing calls this directly

Calls 3

WizPathAddBackslash2Function · 0.85
tableExistsMethod · 0.80

Tested by

no test coverage detected