mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-16 03:12:43 +00:00
27 lines
660 B
C++
27 lines
660 B
C++
#include <Common/config_build.h>
|
|
#include <DataTypes/DataTypeString.h>
|
|
#include <Interpreters/Settings.h>
|
|
#include <Storages/System/StorageSystemBuildOptions.h>
|
|
|
|
namespace DB
|
|
{
|
|
|
|
NamesAndTypesList StorageSystemBuildOptions::getNamesAndTypes()
|
|
{
|
|
return {
|
|
{"name", std::make_shared<DataTypeString>()},
|
|
{"value", std::make_shared<DataTypeString>()},
|
|
};
|
|
}
|
|
|
|
void StorageSystemBuildOptions::fillData(MutableColumns & res_columns, const Context &, const SelectQueryInfo &) const
|
|
{
|
|
for (auto it = auto_config_build; *it; it += 2)
|
|
{
|
|
res_columns[0]->insert(String(it[0]));
|
|
res_columns[1]->insert(String(it[1]));
|
|
}
|
|
}
|
|
|
|
}
|