| 232 | } |
| 233 | |
| 234 | void Storage::RemoveProject(const QString &project) |
| 235 | { |
| 236 | QSqlQuery query(QSqlDatabase::database(DB_CONNECTION_NAME)); |
| 237 | query.prepare("DELETE FROM Projects WHERE project = :Project"); |
| 238 | query.bindValue(":Project", project); |
| 239 | if (!query.exec()) |
| 240 | LogError("Failed to delete project from database: %s\n", query.lastError().text().toStdString().c_str()); |
| 241 | } |
| 242 | |
| 243 | /// EXTENSIONS |
| 244 |
no test coverage detected