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

Function validateQueryResult

src/processor/operator/simple/import_db.cpp:16–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14namespace processor {
15
16static void validateQueryResult(main::QueryResult* queryResult) {
17 auto currentResult = queryResult;
18 while (currentResult) {
19 if (!currentResult->isSuccess()) {
20 throw RuntimeException("Import database failed: " + currentResult->getErrorMessage());
21 }
22 currentResult = currentResult->getNextQueryResult();
23 }
24}
25
26void ImportDB::executeInternal(ExecutionContext* context) {
27 auto clientContext = context->clientContext;

Callers 1

executeInternalMethod · 0.85

Calls 3

getNextQueryResultMethod · 0.80
isSuccessMethod · 0.45
getErrorMessageMethod · 0.45

Tested by

no test coverage detected