46 connection_(connection), transactionActive_(
false) {
72 __FILE__, __LINE__,
"SQLiteConnection::updateQuery()",
180 "SQLiteConnection::tableExistsInDB()",
181 "Illegal call during active transaction.");
184 string query =
"SELECT count(*) "
185 "FROM sqlite_master "
186 "WHERE type = 'table' and name = '" + tableName +
"';";
193 int intBoolValue = 0;
200 "SQLiteConnection::tableExistsInDB()",
221 "SQLiteConnection::rowCountInTable()",
222 "Table was not found.");
224 string query =
"SELECT count(*) FROM " + tableName +
";";
237 "SQLiteConnection::tableExistsInDB()",
254 if (result != SQLITE_OK && result != SQLITE_ROW &&
255 result != SQLITE_DONE) {
272 sqlite3_stmt* stmt = NULL;
273 const char*
dummy = NULL;
276 connection_, queryString.c_str(), queryString.length(),
292 if (statement == NULL) {
308 string query =
"pragma user_version;";
321 "SQLiteConnection::version()",
336 string query =
"pragma user_version = " +