1 | #pragma once |
---|---|
2 | |
3 | #include <string> |
4 | #include <Parsers/IAST.h> |
5 | #include "IDataType.h" |
6 | |
7 | namespace DB |
8 | { |
9 | /// Convert data type to query. for example |
10 | /// DataTypeUInt8 -> ASTIdentifier(UInt8) |
11 | /// DataTypeNullable(DataTypeUInt8) -> ASTFunction(ASTIdentifier(UInt8)) |
12 | ASTPtr dataTypeConvertToQuery(const DataTypePtr & data_type); |
13 | |
14 | /// Convert MySQL type to ClickHouse data type. |
15 | DataTypePtr convertMySQLDataType(const std::string & mysql_data_type, bool is_nullable, bool is_unsigned, size_t length); |
16 | |
17 | } |
18 |