2019-06-20 20:57:01 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <string>
|
2020-09-09 12:18:02 +00:00
|
|
|
#include <Core/MultiEnum.h>
|
2019-06-20 20:57:01 +00:00
|
|
|
#include <Parsers/IAST.h>
|
|
|
|
#include "IDataType.h"
|
|
|
|
|
|
|
|
namespace DB
|
|
|
|
{
|
2020-09-09 12:18:02 +00:00
|
|
|
enum class MySQLDataTypesSupport;
|
|
|
|
|
2019-06-20 20:57:01 +00:00
|
|
|
/// Convert MySQL type to ClickHouse data type.
|
2020-09-09 12:18:02 +00:00
|
|
|
DataTypePtr convertMySQLDataType(MultiEnum<MySQLDataTypesSupport> type_support, const std::string & mysql_data_type, bool is_nullable, bool is_unsigned, size_t length, size_t precision, size_t scale);
|
2019-06-20 20:57:01 +00:00
|
|
|
|
|
|
|
}
|