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

Method ShellLoadHistory

tools/shell/shell.cpp:2702–2709  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2700}
2701
2702int ShellState::ShellLoadHistory(const char *path) {
2703#ifdef HAVE_LINENOISE
2704 if (rl_version == ReadLineVersion::LINENOISE) {
2705 return linenoiseHistoryLoad(path);
2706 }
2707#endif
2708 return 0;
2709}
2710
2711int ShellState::ShellSaveHistory(const char *path) {
2712#ifdef HAVE_LINENOISE

Callers 1

RunShellFunction · 0.80

Calls 1

linenoiseHistoryLoadFunction · 0.85

Tested by

no test coverage detected