mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-18 12:22:12 +00:00
30 lines
553 B
C++
30 lines
553 B
C++
#pragma once
|
|
|
|
#include <Parsers/IAST.h>
|
|
|
|
|
|
namespace DB
|
|
{
|
|
|
|
/** A pair of the name and type. For example, browser FixedString(2).
|
|
*/
|
|
class ASTNameTypePair : public IAST
|
|
{
|
|
public:
|
|
/// name
|
|
String name;
|
|
/// type
|
|
ASTPtr type;
|
|
|
|
/** Get the text that identifies this element. */
|
|
String getID(char delim) const override { return "NameTypePair" + (delim + name); }
|
|
ASTPtr clone() const override;
|
|
|
|
protected:
|
|
void formatImpl(const FormatSettings & settings, FormatState & state, FormatStateStacked frame) const override;
|
|
};
|
|
|
|
|
|
}
|
|
|