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

Function validateQuery

test/test_runner/insert_by_row.cpp:15–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13namespace testing {
14
15static std::unique_ptr<main::QueryResult> validateQuery(main::Connection& conn,
16 std::string& query) {
17 auto result = conn.query(query);
18 if (!result->isSuccess()) {
19 throw Exception(std::format("Failed to execute statement: {}.\nError: {}", query,
20 result->getErrorMessage()));
21 }
22 return result;
23}
24
25void InsertDatasetByRow::init() {
26 std::string datasetFullPath = TestHelper::appendLbugRootPath("dataset/" + datasetPath + "/");

Callers 2

initMethod · 0.70
runMethod · 0.70

Calls 3

queryMethod · 0.45
isSuccessMethod · 0.45
getErrorMessageMethod · 0.45

Tested by

no test coverage detected