mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-18 20:32:43 +00:00
28 lines
812 B
C++
28 lines
812 B
C++
#pragma once
|
|
|
|
#include <Core/NamesAndTypes.h>
|
|
#include <DataTypes/NestedUtils.h>
|
|
#include <DataTypes/DataTypeTuple.h>
|
|
|
|
namespace DB
|
|
{
|
|
|
|
namespace StructureToFormatSchemaUtils
|
|
{
|
|
void writeIndent(WriteBuffer & buf, size_t indent);
|
|
|
|
void startNested(WriteBuffer & buf, const String & nested_name, const String & nested_type, size_t indent);
|
|
|
|
void endNested(WriteBuffer & buf, size_t indent);
|
|
|
|
String getSchemaFieldName(const String & column_name);
|
|
|
|
String getSchemaMessageName(const String & column_name);
|
|
|
|
NamesAndTypesList collectNested(const NamesAndTypesList & names_and_types, bool allow_split_by_underscore, const String & format_name);
|
|
|
|
NamesAndTypesList getCollectedTupleElements(const DataTypeTuple & tuple_type, bool allow_split_by_underscore, const String & format_name);
|
|
}
|
|
|
|
}
|