2018-07-24 14:42:52 +00:00
|
|
|
#include <Common/config_build.h>
|
|
|
|
#include <DataTypes/DataTypeString.h>
|
2017-04-01 09:19:00 +00:00
|
|
|
#include <Interpreters/Settings.h>
|
|
|
|
#include <Storages/System/StorageSystemBuildOptions.h>
|
2017-01-25 22:24:36 +00:00
|
|
|
|
|
|
|
namespace DB
|
|
|
|
{
|
|
|
|
|
2018-07-24 14:28:56 +00:00
|
|
|
NamesAndTypesList StorageSystemBuildOptions::getNamesAndTypes()
|
2018-01-25 14:42:39 +00:00
|
|
|
{
|
2018-07-24 14:28:56 +00:00
|
|
|
return {
|
|
|
|
{"name", std::make_shared<DataTypeString>()},
|
|
|
|
{"value", std::make_shared<DataTypeString>()},
|
|
|
|
};
|
2017-01-25 22:24:36 +00:00
|
|
|
}
|
|
|
|
|
2018-07-24 14:28:56 +00:00
|
|
|
void StorageSystemBuildOptions::fillData(MutableColumns & res_columns, const Context &, const SelectQueryInfo &) const
|
2017-01-25 22:24:36 +00:00
|
|
|
{
|
2017-06-18 06:11:49 +00:00
|
|
|
for (auto it = auto_config_build; *it; it += 2)
|
|
|
|
{
|
2017-12-16 00:49:03 +00:00
|
|
|
res_columns[0]->insert(String(it[0]));
|
2017-12-18 06:49:38 +00:00
|
|
|
res_columns[1]->insert(String(it[1]));
|
2017-04-01 07:20:54 +00:00
|
|
|
}
|
2017-01-25 22:24:36 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|