ClickHouse/src/Functions/base64Decode.cpp
2024-06-10 12:16:03 +00:00

19 lines
480 B
C++

#include <Functions/FunctionBase64Conversion.h>
#if USE_BASE64
#include <Functions/FunctionFactory.h>
namespace DB
{
REGISTER_FUNCTION(Base64Decode)
{
factory.registerFunction<FunctionBase64Conversion<Base64Decode<Base64Variant::Normal>>>();
factory.registerFunction<FunctionBase64Conversion<Base64Decode<Base64Variant::Url>>>();
/// MySQL compatibility alias.
factory.registerAlias("FROM_BASE64", "base64Decode", FunctionFactory::CaseInsensitive);
}
}
#endif