Add database schema and relocate database to seperate directory

This commit is contained in:
2016-06-20 16:59:15 +01:00
parent 786f03d2e5
commit 5f300cc7ed
3 changed files with 14 additions and 1 deletions

View File

@ -26,7 +26,7 @@ int main(int argc, char* argv[]) {
char *zErrMsg = 0;
int rc;
rc = sqlite3_open("../trivia.db", &db);
rc = sqlite3_open("../db/trivia.db", &db);
if (rc) {
std::cerr << "Can't open database: " << sqlite3_errmsg(db) << std::endl;