blob: 682fac88969c3bb87aabcbd6be4cc7c13810f23e (
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
25
26
 | #include <Functions/FunctionFactory.h>
#include <Functions/formatReadable.h>
namespace DB
{
namespace
{
    struct Impl
    {
        static constexpr auto name = "formatReadableQuantity";
        static void format(double value, DB::WriteBuffer & out)
        {
            formatReadableQuantity(value, out);
        }
    };
}
REGISTER_FUNCTION(FormatReadableQuantity)
{
    factory.registerFunction<FunctionFormatReadable<Impl>>();
}
}
 |