aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/clickhouse/src/Functions/tryBase58Decode.cpp
blob: b722693fd8c31083a0d141b64941e6506af75ac0 (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 NameTryBase58Decode
{
    static constexpr auto name = "tryBase58Decode";
};

using TryBase58DecodeImpl = Base58Decode<NameTryBase58Decode, Base58DecodeErrorHandling::ReturnEmptyString>;
using FunctionTryBase58Decode = FunctionBase58Conversion<TryBase58DecodeImpl>;

}

REGISTER_FUNCTION(TryBase58Decode)
{
    factory.registerFunction<FunctionTryBase58Decode>();
}

}