|
@@ -5,6 +5,7 @@
|
|
|
#include <fstream>
|
|
|
#include <unistd.h>
|
|
|
#include <stdio.h>
|
|
|
+#include <sqlite3.h>
|
|
|
|
|
|
/**
|
|
|
* Creates a new statistics_db object. Opens an existing database located at database_path. If not existing, creates
|
|
@@ -20,7 +21,7 @@ statistics_db::statistics_db(std::string database_path) {
|
|
|
db.reset(new SQLite::Database(database_path, SQLite::OPEN_CREATE | SQLite::OPEN_READWRITE));
|
|
|
|
|
|
db->exec("PRAGMA synchronous = OFF");
|
|
|
- db->exec("PRAGMA journal_mode = MEMORY");
|
|
|
+ db->exec("PRAGMA journal_mode = OFF");
|
|
|
|
|
|
|
|
|
// Read ports and services into portServices vector
|