memgraph/cypher/ast/queries.hpp
2015-10-18 19:44:00 +02:00

33 lines
615 B
C++

#ifndef MEMGRAPH_CYPHER_AST_QUERIES_HPP
#define MEMGRAPH_CYPHER_AST_QUERIES_HPP
#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;
};
}
#endif