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

Function SetReadLineVersion

tools/shell/shell_metadata_command.cpp:724–738  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

722}
723
724MetadataResult SetReadLineVersion(ShellState &state, const vector<string> &args) {
725 if (args[1] == "linenoise") {
726#ifdef HAVE_LINENOISE
727 state.rl_version = ReadLineVersion::LINENOISE;
728 return MetadataResult::SUCCESS;
729#else
730 state.Print("linenoise is not available in this build");
731 return MetadataResult::FAIL;
732#endif
733 } else if (args[1] == "fallback") {
734 state.rl_version = ReadLineVersion::FALLBACK;
735 return MetadataResult::SUCCESS;
736 }
737 return MetadataResult::PRINT_USAGE;
738}
739
740MetadataResult SetPager(ShellState &state, const vector<string> &args) {
741 if (args.size() == 1) {

Callers

nothing calls this directly

Calls 1

PrintMethod · 0.45

Tested by

no test coverage detected