Start of new ANTLR4 based parser.
Very simple tests pass.
This commit is contained in:
parent
03b4194193
commit
fbbe832a05
44 changed files with 860 additions and 8 deletions
25
pglablib/sqlast/SelectItem.h
Normal file
25
pglablib/sqlast/SelectItem.h
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
#pragma once
|
||||
|
||||
#include "Node.h"
|
||||
#include <memory>
|
||||
#include <string>
|
||||
|
||||
namespace sqlast {
|
||||
|
||||
class Expression;
|
||||
|
||||
class SelectItem : public Node
|
||||
{
|
||||
public:
|
||||
explicit SelectItem(std::unique_ptr<sqlast::Expression> expr);
|
||||
|
||||
Expression& GetExpression() { return *expression; }
|
||||
|
||||
void SetAlias(const std::string &alias);
|
||||
std::string GetAlias() const { return alias; }
|
||||
private:
|
||||
std::unique_ptr<Expression> expression;
|
||||
std::string alias;
|
||||
};
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue