memgraph/cypher/ast/start.hpp

34 lines
593 B
C++
Raw Normal View History

#pragma once
#include "ast_node.hpp"
#include "queries.hpp"
namespace ast
{
struct Start : public AstNode<Start>
{
2016-01-24 23:21:46 +08:00
Start(ReadQuery* read_query)
: read_query(read_query)
{
}
2016-01-24 23:21:46 +08:00
Start(WriteQuery* write_query)
: write_query(write_query)
{
}
Start(DeleteQuery* delete_query)
: delete_query(delete_query)
{
}
// TODO: the start structure must have a different implementation
// is this class necessary?
ReadQuery* read_query{nullptr};
WriteQuery* write_query{nullptr};
DeleteQuery* delete_query{nullptr};
};
};