38 #ifndef MOCKSQLITEWRAPPER_H 39 #define MOCKSQLITEWRAPPER_H 41 #include <gmock/gmock.h> 43 #include "src/database-server/data-source/idatasource.h" 73 const std::string& var_name,
Err fetch_variable_values(const std::string &var_name, const std::function< void(const VarValue &val, size_t index)> &send_vale) noexceptoverride
fetch_variable_values get all values of a given variable
Definition: mocksqlitewrapper.h:72
VarValue(Variable &&variable, double &&val, std::uint64_t &&ts)
Definition: varvalue.cc:45
Definition: variable.h:44
Err
Definition: idatasource.h:57
Err fetch_variables(const std::function< void(const Variable &var, size_t index)> &send_vale) noexceptoverride
fetch_variables get all variables
Definition: mocksqlitewrapper.h:62
Err create_scheme() noexceptoverride
create_scheme create data storage persistence, e.g. schema for a relational database ...
Definition: mocksqlitewrapper.h:47
Err add_variable(const Variable &variable) noexceptoverride
add_variable add a variable to be tracket for the system (by default the only supported variabe value...
Definition: mocksqlitewrapper.h:50
Err add_variable_value(const VarValue &var_value) noexceptoverride
add_variable_value add a new value for the variable.
Definition: mocksqlitewrapper.h:55
virtual Err count_variable_values(const std::string &var_name, const std::chrono::system_clock::time_point &start_date, const std::chrono::system_clock::time_point &end_date, const std::function< void(size_t count)> &send_count) noexcept=0
count_variable_values count all values of a given variable
Err count_variable_values(const std::string &, const std::chrono::system_clock::time_point &, const std::chrono::system_clock::time_point &, const std::function< void(size_t count)> &) noexceptoverride
count_variable_values count all values of a given variable
Definition: mocksqlitewrapper.h:101