| 64 | } |
| 65 | |
| 66 | bool 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 | |
| 81 | bool WizIndexBase::execSQL(const CString& strSQL) |
| 82 | { |
nothing calls this directly
no test coverage detected