MCPcopy Create free account
hub / github.com/dais-polymtl/flock / ExecuteGetQuery

Function ExecuteGetQuery

src/custom_parser/query_parser.cpp:84–89  ·  view source on GitHub ↗

Execute a query with storage attachment and return formatted result for GET operations

Source from the content-addressed store, hash-verified

82
83// Execute a query with storage attachment and return formatted result for GET operations
84std::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
92std::string ExecuteSetQuery(const std::string& query, const std::string& success_message, bool read_only) {

Callers 2

ToSQLMethod · 0.85
ToSQLMethod · 0.85

Calls 1

FormatResultsAsValuesFunction · 0.85

Tested by

no test coverage detected