//===----------------------------------------------------------------------===// // 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