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

Function validateQuery

test/test_runner/multi_copy_split.cpp:18–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16namespace testing {
17
18static std::unique_ptr<main::QueryResult> validateQuery(main::Connection& conn,
19 std::string& query) {
20 auto result = conn.query(query);
21 if (!result->isSuccess()) {
22 throw Exception(std::format("Failed to execute statement: {}.\nError: {}", query,
23 result->getErrorMessage()));
24 }
25 return result;
26}
27
28void SplitMultiCopyRandom::genSeedIfNecessary() {
29 if (seed.size() == 2) {

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