22 int ret = sqlite3_open_v2(apFilename, &mpSQLite, aFlags, NULL);
25 std::string strerr = sqlite3_errmsg(mpSQLite);
26 sqlite3_close(mpSQLite);
34 int ret = sqlite3_close(mpSQLite);
43 int ret = sqlite3_exec(mpSQLite, apQueries, NULL, NULL, NULL);
47 return sqlite3_changes(mpSQLite);
66 Statement query(*
this,
"SELECT count(*) FROM sqlite_master WHERE type='table' AND name=?");
67 query.
bind(1, apTableName);
74 void Database::check(
const int aRet)
const
76 if (SQLITE_OK != aRet)