#pragma once #include #include namespace db { sql::Database init(std::string name) { sql::Database db(name, SQLite::OPEN_READWRITE|SQLite::OPEN_CREATE); DEBUG << "SQLite database file '" << db.getFilename().c_str() << "' opened successfully\n"; return db; } }