aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/clickhouse/src/Functions/JSONPath/ASTs/ASTJSONPathMemberAccess.h
blob: 3a5e121b98919610d5e93c5a0db4310740061602 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#pragma once

#include <Parsers/IAST.h>

namespace DB
{
class ASTJSONPathMemberAccess : public IAST
{
public:
    String getID(char) const override { return "ASTJSONPathMemberAccess"; }

    ASTPtr clone() const override { return std::make_shared<ASTJSONPathMemberAccess>(*this); }

    /// Member name to lookup in json document (in path: $.some_key.another_key. ...)
    String member_name;
};

}