You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12 lines
297 B

  1. #pragma once
  2. #include <db/db.h>
  3. #include <string>
  4. namespace db {
  5. sql::Database init(std::string name) {
  6. sql::Database db(name, SQLite::OPEN_READWRITE|SQLite::OPEN_CREATE);
  7. DEBUG << "SQLite database file '" << db.getFilename().c_str() << "' opened successfully\n";
  8. return db;
  9. }
  10. }