1 | #include "StorageSystemBuildOptions.h" |
---|---|
2 | |
3 | #include <DataTypes/DataTypeString.h> |
4 | #include <Core/Settings.h> |
5 | |
6 | extern const char * auto_config_build[]; |
7 | |
8 | namespace DB |
9 | { |
10 | |
11 | NamesAndTypesList StorageSystemBuildOptions::getNamesAndTypes() |
12 | { |
13 | return { |
14 | {"name", std::make_shared<DataTypeString>()}, |
15 | {"value", std::make_shared<DataTypeString>()}, |
16 | }; |
17 | } |
18 | |
19 | void StorageSystemBuildOptions::fillData(MutableColumns & res_columns, const Context &, const SelectQueryInfo &) const |
20 | { |
21 | for (auto it = auto_config_build; *it; it += 2) |
22 | { |
23 | res_columns[0]->insert(it[0]); |
24 | res_columns[1]->insert(it[1]); |
25 | } |
26 | } |
27 | |
28 | } |
29 |