| 1220 | } |
| 1221 | |
| 1222 | std::string SQLiteQueryExecutor::getMetadata(std::string entryName) const { |
| 1223 | std::string getMetadataByPrimaryKeySQL = |
| 1224 | "SELECT * " |
| 1225 | "FROM metadata " |
| 1226 | "WHERE name = ?;"; |
| 1227 | std::unique_ptr<Metadata> entry = getEntityByPrimaryKey<Metadata>( |
| 1228 | this->getConnection(), getMetadataByPrimaryKeySQL, entryName); |
| 1229 | return (entry == nullptr) ? "" : entry->data; |
| 1230 | } |
| 1231 | |
| 1232 | void SQLiteQueryExecutor::addOutboundP2PMessages( |
| 1233 | const std::vector<OutboundP2PMessage> &messages) const { |
no test coverage detected