summaryrefslogtreecommitdiffstats
path: root/yql/essentials/minikql/udf_value_test_support/pg_int.h
blob: 479bce3a67ab7798205685b3c1f6c58e32a86c96 (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
#pragma once

#include <util/generic/maybe.h>
#include <util/system/types.h>

namespace NYql::NUdf::NTest {

class TPgInt {
public:
    TPgInt() = default;

    explicit TPgInt(i32 value)
        : Value_(value)
    {
    }

    TMaybe<i32> Value() const {
        return Value_;
    }

private:
    TMaybe<i32> Value_{};
};

} // namespace NYql::NUdf::NTest