Execute a query with storage attachment and return formatted result for GET operations
| 82 | |
| 83 | // Execute a query with storage attachment and return formatted result for GET operations |
| 84 | std::string ExecuteGetQuery(const std::string& query, bool read_only) { |
| 85 | auto con = Config::GetConnection(); |
| 86 | Config::StorageAttachmentGuard guard(con, read_only); |
| 87 | auto result = con.Query(query); |
| 88 | return FormatResultsAsValues(std::move(result)); |
| 89 | } |
| 90 | |
| 91 | // Execute a query with storage attachment and return status message for SET operations |
| 92 | std::string ExecuteSetQuery(const std::string& query, const std::string& success_message, bool read_only) { |
no test coverage detected