| 66 | } |
| 67 | |
| 68 | void open ( |
| 69 | const std::string& file |
| 70 | ) |
| 71 | { |
| 72 | filename = file; |
| 73 | sqlite3* ptr = 0; |
| 74 | int status = sqlite3_open(file.c_str(), &ptr); |
| 75 | db.reset(ptr, impl::db_deleter()); |
| 76 | if (status != SQLITE_OK) |
| 77 | { |
| 78 | throw sqlite_error(sqlite3_errmsg(db.get())); |
| 79 | } |
| 80 | } |
| 81 | |
| 82 | const std::string& get_database_filename ( |
| 83 | ) const |
nothing calls this directly
no test coverage detected