should be it
This commit is contained in:
29
external/duckdb/tools/shell/linenoise/include/history.hpp
vendored
Normal file
29
external/duckdb/tools/shell/linenoise/include/history.hpp
vendored
Normal file
@@ -0,0 +1,29 @@
|
||||
//===----------------------------------------------------------------------===//
|
||||
// DuckDB
|
||||
//
|
||||
// history.hpp
|
||||
//
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "duckdb/common/common.hpp"
|
||||
|
||||
namespace duckdb {
|
||||
|
||||
class History {
|
||||
public:
|
||||
static void Free();
|
||||
static idx_t GetLength();
|
||||
static const char *GetEntry(idx_t index);
|
||||
static void Overwrite(idx_t index, const char *new_entry);
|
||||
static void RemoveLastEntry();
|
||||
static int Add(const char *line);
|
||||
static int Add(const char *line, idx_t len);
|
||||
static int SetMaxLength(idx_t len);
|
||||
static int Save(const char *filename);
|
||||
static int Load(const char *filename);
|
||||
};
|
||||
|
||||
} // namespace duckdb
|
||||
Reference in New Issue
Block a user