mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-12 01:12:12 +00:00
29 lines
627 B
C++
29 lines
627 B
C++
#include "StorageSystemBuildOptions.h"
|
|
|
|
#include <DataTypes/DataTypeString.h>
|
|
#include <Core/Settings.h>
|
|
|
|
extern const char * auto_config_build[];
|
|
|
|
namespace DB
|
|
{
|
|
|
|
NamesAndTypesList StorageSystemBuildOptions::getNamesAndTypes()
|
|
{
|
|
return {
|
|
{"name", std::make_shared<DataTypeString>()},
|
|
{"value", std::make_shared<DataTypeString>()},
|
|
};
|
|
}
|
|
|
|
void StorageSystemBuildOptions::fillData(MutableColumns & res_columns, ContextPtr, const SelectQueryInfo &) const
|
|
{
|
|
for (auto * it = auto_config_build; *it; it += 2)
|
|
{
|
|
res_columns[0]->insert(it[0]);
|
|
res_columns[1]->insert(it[1]);
|
|
}
|
|
}
|
|
|
|
}
|