20#include <drizzled/plugin/table_function.h>
21#include <drizzled/plugin/function.h>
22#include <drizzled/item/func.h>
24#include "engine_state_history.h"
32std::vector<std::string> engine_state_history;
40 EngineStateHistory(
const char *table_arg) :
44 ~EngineStateHistory() {}
49 std::vector<std::string>::iterator it;
63EngineStateHistory::EngineStateHistory() :
64 plugin::TableFunction(
"DATA_DICTIONARY",
"SEAPITESTER_ENGINE_STATE_HISTORY")
69EngineStateHistory::Generator::Generator(Field **arg) :
72 it= engine_state_history.begin();
75EngineStateHistory::Generator::~Generator()
79bool EngineStateHistory::Generator::populate()
81 if (engine_state_history.empty())
84 if (it == engine_state_history.end())
94class ClearEngineStateHistoryFunction :
public Item_int_func
99 ClearEngineStateHistoryFunction() :Item_int_func()
104 const char *func_name()
const
106 return "seapitester_clear_engine_state_history";
109 void fix_length_and_dec()
120extern uint64_t next_cursor_id;
124 engine_state_history.clear();
bool check_argument_count(int n)
TODO: Rename this file - func.h is stupid.