ClickHouse/src/Functions/base58Decode.cpp
Robert Schulze aa7e62ad5f
Add functio ntryBase58Decode()
- makes it consistent with tryBase64Decode(), follow-up to #39292

- additionally the following minor changes:

  - rename Common/base58.h|cpp to Common/Base58.h|cpp for constency with
    Common/Base64.h|cpp

  - check that (encode|decode|tryDecode)Base64() gets just one argument
2022-09-27 10:18:36 +00:00

25 lines
465 B
C++

#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>();
}
}