aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/clickhouse/src/Functions/toMonday.cpp
blob: 280c8a93b1a92bfa2c00ded16a122c90e11f1fd9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#include <Functions/FunctionFactory.h>
#include <Functions/DateTimeTransforms.h>
#include <Functions/FunctionDateOrDateTimeToDateOrDate32.h>


namespace DB
{

using FunctionToMonday = FunctionDateOrDateTimeToDateOrDate32<ToMondayImpl>;

REGISTER_FUNCTION(ToMonday)
{
    factory.registerFunction<FunctionToMonday>();
}

}