Skip to content

Commit

Permalink
Update handling_db.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
bartpomietlo authored Sep 20, 2024
1 parent 694f13a commit 2aaa175
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/handling_db.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ bool is_file_empty(const std::string& path){

//This function generates "currencies.csv" and writes starting currencies e.g. PLN USD, 3.9 [base64]
bool database_preparing(const std::string& sql_query, sqlite3** db, sqlite3_stmt** stmt) {
int rc = sqlite3_open(R"(../database/database.db)", db);
int rc = sqlite3_open(path_to_database_db, db);
if (rc != SQLITE_OK) {
std::cerr << "Cannot open database: " << sqlite3_errmsg(*db) << '\n';
return false;
Expand Down

0 comments on commit 2aaa175

Please sign in to comment.