2019-06-20 09:12:49 +00:00
|
|
|
#include "config_functions.h"
|
2018-09-09 23:36:06 +00:00
|
|
|
|
|
|
|
namespace DB
|
|
|
|
{
|
2018-11-25 23:24:26 +00:00
|
|
|
class FunctionFactory;
|
|
|
|
|
2018-09-09 23:36:06 +00:00
|
|
|
void registerFunctionEmpty(FunctionFactory &);
|
|
|
|
void registerFunctionNotEmpty(FunctionFactory &);
|
|
|
|
void registerFunctionLength(FunctionFactory &);
|
|
|
|
void registerFunctionLengthUTF8(FunctionFactory &);
|
2019-05-17 12:55:21 +00:00
|
|
|
void registerFunctionIsValidUTF8(FunctionFactory &);
|
|
|
|
void registerFunctionToValidUTF8(FunctionFactory &);
|
2018-09-09 23:36:06 +00:00
|
|
|
void registerFunctionLower(FunctionFactory &);
|
|
|
|
void registerFunctionUpper(FunctionFactory &);
|
|
|
|
void registerFunctionLowerUTF8(FunctionFactory &);
|
|
|
|
void registerFunctionUpperUTF8(FunctionFactory &);
|
|
|
|
void registerFunctionReverse(FunctionFactory &);
|
|
|
|
void registerFunctionReverseUTF8(FunctionFactory &);
|
|
|
|
void registerFunctionsConcat(FunctionFactory &);
|
2019-05-18 11:30:36 +00:00
|
|
|
void registerFunctionFormat(FunctionFactory &);
|
2018-09-09 23:36:06 +00:00
|
|
|
void registerFunctionSubstring(FunctionFactory &);
|
2019-06-17 21:49:37 +00:00
|
|
|
void registerFunctionCRC32(FunctionFactory &);
|
2018-09-09 23:36:06 +00:00
|
|
|
void registerFunctionAppendTrailingCharIfAbsent(FunctionFactory &);
|
|
|
|
void registerFunctionStartsWith(FunctionFactory &);
|
|
|
|
void registerFunctionEndsWith(FunctionFactory &);
|
2018-12-17 20:07:31 +00:00
|
|
|
void registerFunctionTrim(FunctionFactory &);
|
2018-12-13 12:58:00 +00:00
|
|
|
void registerFunctionRegexpQuoteMeta(FunctionFactory &);
|
2018-11-25 23:24:26 +00:00
|
|
|
|
2018-10-11 16:22:50 +00:00
|
|
|
#if USE_BASE64
|
2018-10-10 01:04:07 +00:00
|
|
|
void registerFunctionBase64Encode(FunctionFactory &);
|
|
|
|
void registerFunctionBase64Decode(FunctionFactory &);
|
2018-11-02 19:06:05 +00:00
|
|
|
void registerFunctionTryBase64Decode(FunctionFactory &);
|
2018-10-11 16:22:50 +00:00
|
|
|
#endif
|
2018-09-09 23:36:06 +00:00
|
|
|
|
|
|
|
void registerFunctionsString(FunctionFactory & factory)
|
|
|
|
{
|
|
|
|
registerFunctionEmpty(factory);
|
|
|
|
registerFunctionNotEmpty(factory);
|
|
|
|
registerFunctionLength(factory);
|
|
|
|
registerFunctionLengthUTF8(factory);
|
2019-05-17 12:55:21 +00:00
|
|
|
registerFunctionIsValidUTF8(factory);
|
|
|
|
registerFunctionToValidUTF8(factory);
|
2018-09-09 23:36:06 +00:00
|
|
|
registerFunctionLower(factory);
|
|
|
|
registerFunctionUpper(factory);
|
|
|
|
registerFunctionLowerUTF8(factory);
|
|
|
|
registerFunctionUpperUTF8(factory);
|
|
|
|
registerFunctionReverse(factory);
|
2019-06-17 21:49:37 +00:00
|
|
|
registerFunctionCRC32(factory);
|
2018-09-09 23:36:06 +00:00
|
|
|
registerFunctionReverseUTF8(factory);
|
|
|
|
registerFunctionsConcat(factory);
|
2019-05-18 11:30:36 +00:00
|
|
|
registerFunctionFormat(factory);
|
2018-09-09 23:36:06 +00:00
|
|
|
registerFunctionSubstring(factory);
|
|
|
|
registerFunctionAppendTrailingCharIfAbsent(factory);
|
|
|
|
registerFunctionStartsWith(factory);
|
|
|
|
registerFunctionEndsWith(factory);
|
2018-12-17 20:07:31 +00:00
|
|
|
registerFunctionTrim(factory);
|
2018-12-13 12:58:00 +00:00
|
|
|
registerFunctionRegexpQuoteMeta(factory);
|
2018-10-11 16:22:50 +00:00
|
|
|
#if USE_BASE64
|
2018-10-10 01:04:07 +00:00
|
|
|
registerFunctionBase64Encode(factory);
|
|
|
|
registerFunctionBase64Decode(factory);
|
2018-11-02 19:06:05 +00:00
|
|
|
registerFunctionTryBase64Decode(factory);
|
2018-10-11 16:22:50 +00:00
|
|
|
#endif
|
2018-09-09 23:36:06 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|