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

Method getLogicalPlan

test/test_runner/test_runner.cpp:432–440  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

430}
431
432std::unique_ptr<planner::LogicalPlan> TestRunner::getLogicalPlan(const std::string& query,
433 Connection& conn) {
434 const auto preparedStatement = conn.prepare(query);
435 DASSERT(preparedStatement->isSuccess());
436 auto cachedStatement =
437 conn.getClientContext()->getCachedPreparedStatementManager().getCachedStatement(
438 preparedStatement->getName());
439 return std::move(cachedStatement->logicalPlan);
440}
441
442} // namespace testing
443} // namespace lbug

Callers

nothing calls this directly

Calls 5

getCachedStatementMethod · 0.80
prepareMethod · 0.45
isSuccessMethod · 0.45
getClientContextMethod · 0.45
getNameMethod · 0.45

Tested by

no test coverage detected