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

Function SetMaxRows

tools/shell/shell_metadata_command.cpp:273–286  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

271}
272
273MetadataResult SetMaxRows(ShellState &state, const vector<string> &args) {
274 if (args.size() > 3) {
275 return MetadataResult::PRINT_USAGE;
276 }
277 if (args.size() == 1) {
278 state.PrintF("current max rows: %zu\n", state.max_rows);
279 return MetadataResult::SUCCESS;
280 }
281 state.max_rows = (size_t)ShellState::StringToInt(args[1]);
282 if (args.size() > 2) {
283 state.max_analyze_rows = (size_t)ShellState::StringToInt(args[2]);
284 }
285 return MetadataResult::SUCCESS;
286}
287
288MetadataResult SetMaxWidth(ShellState &state, const vector<string> &args) {
289 if (args.size() > 2) {

Callers

nothing calls this directly

Calls 2

sizeMethod · 0.45
PrintFMethod · 0.45

Tested by

no test coverage detected