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

Function RenderLastResult

tools/shell/shell_metadata_command.cpp:250–260  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

248}
249
250MetadataResult RenderLastResult(ShellState &state, const vector<string> &args) {
251 if (state.last_result) {
252 auto renderer = state.GetRenderer();
253 renderer->RemoveRenderLimits();
254 auto res = state.RenderQueryResult(*renderer, *state.last_result);
255 if (res == SuccessState::FAILURE) {
256 return MetadataResult::FAIL;
257 }
258 }
259 return MetadataResult::SUCCESS;
260}
261
262MetadataResult ToggleLog(ShellState &state, const vector<string> &args) {
263 if (state.safe_mode) {

Callers

nothing calls this directly

Calls 3

GetRendererMethod · 0.80
RemoveRenderLimitsMethod · 0.45
RenderQueryResultMethod · 0.45

Tested by

no test coverage detected