MCPcopy Create free account
hub / github.com/duckdb/duckdb / RenderQuery

Method RenderQuery

tools/shell/shell.cpp:844–852  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

842}
843
844SuccessState ShellState::RenderQuery(ShellRenderer &renderer, const string &query, PagerMode pager_overwrite) {
845 auto &con = *conn;
846 auto result = con.SendQuery(query);
847 if (result->HasError()) {
848 PrintDatabaseError(result->GetError());
849 return SuccessState::FAILURE;
850 }
851 return RenderQueryResult(renderer, *result, pager_overwrite);
852}
853
854/*
855** Set the destination table field of the ShellState structure to

Callers

nothing calls this directly

Calls 3

SendQueryMethod · 0.80
HasErrorMethod · 0.45
GetErrorMethod · 0.45

Tested by

no test coverage detected