ClickHouse/src/Functions/base64Encode.cpp

21 lines
510 B
C++
Raw Normal View History

2019-02-10 17:40:52 +00:00
#include <Functions/FunctionFactory.h>
2018-10-11 16:22:50 +00:00
#include <Functions/FunctionBase64Conversion.h>
2021-10-27 23:10:39 +00:00
#include "config_functions.h"
2019-12-15 06:34:43 +00:00
2018-10-11 16:22:50 +00:00
#if USE_BASE64
# include <DataTypes/DataTypeString.h>
2018-10-10 01:04:07 +00:00
namespace DB
{
2018-10-12 08:46:53 +00:00
void registerFunctionBase64Encode(FunctionFactory & factory)
2018-10-10 01:04:07 +00:00
{
tb64ini(0, 0);
2018-10-10 01:04:07 +00:00
factory.registerFunction<FunctionBase64Conversion<Base64Encode>>();
/// MysQL compatibility alias.
factory.registerFunction<FunctionBase64Conversion<Base64Encode>>("TO_BASE64", FunctionFactory::CaseInsensitive);
2018-10-10 01:04:07 +00:00
}
2018-10-11 16:22:50 +00:00
}
2018-11-23 18:54:23 +00:00
#endif