2 #include "util/sqlite.hpp"
5 #include "nlohmann/json_fwd.hpp"
12 PoolParametric(
const std::string &base_path,
bool read_only =
true);
19 std::string display_name;
20 enum class Type { QUANTITY, STRING, ENUM };
21 Type type = Type::STRING;
24 bool no_milli =
false;
26 std::vector<std::string> enum_items;
29 std::string format(
const std::string &v)
const;
30 std::string format(
double v)
const;
35 Table(
const std::string &name,
const json &j);
37 std::string display_name;
38 std::vector<Column> columns;
41 const std::string &get_base_path()
const;
42 const std::map<std::string, Table> &get_tables()
const;
43 static const std::vector<Column> &get_extra_columns();
48 std::string base_path;
49 std::map<std::string, Table> tables;
50 bool has_table(
const std::string &table);