aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/clickhouse/src/Functions/base58Decode.cpp
blob: 4c437473f814cd972a5940b25dde85316eeeac8d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#include <Functions/FunctionBase58Conversion.h>
#include <Functions/FunctionFactory.h>

namespace DB
{
namespace
{

struct NameBase58Decode
{
    static constexpr auto name = "base58Decode";
};

using Base58DecodeImpl = Base58Decode<NameBase58Decode, Base58DecodeErrorHandling::ThrowException>;
using FunctionBase58Decode = FunctionBase58Conversion<Base58DecodeImpl>;

}

REGISTER_FUNCTION(Base58Decode)
{
    factory.registerFunction<FunctionBase58Decode>();
}

}