ClickHouse/dbms/src/Core/ExternalResultDescription.h
2019-08-09 23:58:16 +03:00

38 lines
640 B
C++

#pragma once
#include <vector>
#include <Core/Block.h>
namespace DB
{
/** Common part for implementation of MySQLBlockInputStream, MongoDBBlockInputStream and others.
*/
struct ExternalResultDescription
{
enum struct ValueType
{
vtUInt8,
vtUInt16,
vtUInt32,
vtUInt64,
vtInt8,
vtInt16,
vtInt32,
vtInt64,
vtFloat32,
vtFloat64,
vtString,
vtDate,
vtDateTime,
vtUUID,
};
Block sample_block;
std::vector<std::pair<ValueType, bool /* is_nullable */>> types;
void init(const Block & sample_block_);
};
}