memgraph/cypher/ast/queries.hpp

33 lines
615 B
C++
Raw Normal View History

#ifndef MEMGRAPH_CYPHER_AST_QUERIES_HPP
#define MEMGRAPH_CYPHER_AST_QUERIES_HPP
#include "ast_node.hpp"
#include "match.hpp"
#include "return.hpp"
2015-10-19 01:44:00 +08:00
#include "create.hpp"
namespace ast
{
struct ReadQuery : public AstNode<ReadQuery>
{
2015-10-19 01:44:00 +08:00
ReadQuery(Match* match, Return* return_clause)
: match(match), return_clause(return_clause) {}
Match* match;
2015-10-19 01:44:00 +08:00
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