| 158 | } |
| 159 | |
| 160 | std::vector<Draft> SQLiteQueryExecutor::getAllDrafts() const { |
| 161 | static std::string getAllDraftsSQL = |
| 162 | "SELECT * " |
| 163 | "FROM drafts;"; |
| 164 | return getAllEntities<Draft>(this->getConnection(), getAllDraftsSQL); |
| 165 | } |
| 166 | |
| 167 | void SQLiteQueryExecutor::removeAllDrafts() const { |
| 168 | static std::string removeAllDraftsSQL = "DELETE FROM drafts;"; |
no test coverage detected