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

Function SetMaxWidth

tools/shell/shell_metadata_command.cpp:288–298  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

286}
287
288MetadataResult SetMaxWidth(ShellState &state, const vector<string> &args) {
289 if (args.size() > 2) {
290 return MetadataResult::PRINT_USAGE;
291 }
292 if (args.size() == 1) {
293 state.PrintF("current max rows: %zu\n", state.max_width);
294 } else {
295 state.max_width = (size_t)ShellState::StringToInt(args[1]);
296 }
297 return MetadataResult::SUCCESS;
298}
299
300MetadataResult SetColumnRendering(ShellState &state, const vector<string> &args) {
301 state.columns = 1;

Callers

nothing calls this directly

Calls 2

sizeMethod · 0.45
PrintFMethod · 0.45

Tested by

no test coverage detected