@ -20,7 +20,7 @@ add_executable(notification-daemon
db/create.h
db/update.h
db/Schema.cpp
db/db.h
db/db.cpp
db/migrations/Migration.cpp
db/migrations/builder/Table.cpp
db/statements/builder/Statement.cpp
@ -0,0 +1,7 @@
#include <db/db.h>
std::string db_safe(std::string str) {
str.insert(0, "\"");
str += "\"";
return str;
}
@ -1,5 +1,7 @@
#pragma once
#include <string>
#include <SQLiteCpp.h>
#include <io/debug.h>
@ -16,3 +18,5 @@ namespace sql = SQLite;
namespace db_builder = db::migrations::builder;
namespace stmt = db::statements::builder;
std::string db_safe(std::string str);