memgraph/cypher/ast/queries.hpp
2015-12-07 21:51:55 +01:00

30 lines
540 B
C++

#pragma once
#include "ast_node.hpp"
#include "match.hpp"
#include "return.hpp"
#include "create.hpp"
namespace ast
{
struct ReadQuery : public AstNode<ReadQuery>
{
ReadQuery(Match* match, Return* return_clause)
: match(match), return_clause(return_clause) {}
Match* match;
Return* return_clause;
};
struct WriteQuery : public AstNode<WriteQuery>
{
WriteQuery(Create* create, Return* return_clause)
: create(create), return_clause(return_clause) {}
Create* create;
Return* return_clause;
};
}