MCPcopy Create free account
hub / github.com/LadybugDB/ladybug / check

Function check

tools/benchmark/node_write_bench.cpp:19–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17using lbug::common::Value;
18
19static void check(QueryResult& result, const std::string& query) {
20 if (!result.isSuccess()) {
21 std::cerr << "Query failed: " << query << "\n" << result.getErrorMessage() << "\n";
22 std::exit(1);
23 }
24}
25
26static void runQuery(Connection& conn, const std::string& query) {
27 auto result = conn.query(query);

Callers 14

runQueryFunction · 0.85
runCaseFunction · 0.85
hasInfoMethod · 0.85
getInfosMethod · 0.85
hasInsertInfoMethod · 0.85
getInsertInfosMethod · 0.85
hasOnMatchSetInfoMethod · 0.85
getOnMatchSetInfosMethod · 0.85
hasOnCreateSetInfoMethod · 0.85
getOnCreateSetInfosMethod · 0.85
hasInfoMethod · 0.85
getInfosMethod · 0.85

Calls 2

isSuccessMethod · 0.45
getErrorMessageMethod · 0.45

Tested by

no test coverage detected