aboutsummaryrefslogtreecommitdiffstats
path: root/yql/essentials/providers/pg/expr_nodes/yql_pg_expr_nodes.h
blob: 56e9de068dc2b09ccc9afa56930e6dca480771ab (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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#pragma once

#include <yql/essentials/core/expr_nodes/yql_expr_nodes.h>
#include <yql/essentials/providers/common/provider/yql_provider_names.h>
#include <yql/essentials/providers/pg/expr_nodes/yql_pg_expr_nodes.gen.h>

namespace NYql {
namespace NNodes {

#include <yql/essentials/providers/pg/expr_nodes/yql_pg_expr_nodes.decl.inl.h>

class TPgDataSource: public NGenerated::TPgDataSourceStub<TExprBase, TCallable, TCoAtom> {
public:
    explicit TPgDataSource(const TExprNode* node)
        : TPgDataSourceStub(node)
    {
    }

    explicit TPgDataSource(const TExprNode::TPtr& node)
        : TPgDataSourceStub(node)
    {
    }

    static bool Match(const TExprNode* node) {
        if (!TPgDataSourceStub::Match(node)) {
            return false;
        }

        if (node->Child(0)->Content() != PgProviderName) {
            return false;
        }

        return true;
    }
};

#include <yql/essentials/providers/pg/expr_nodes/yql_pg_expr_nodes.defs.inl.h>

} // namespace NNodes
} // namespace NYql