2015-12-08 04:51:55 +08:00
|
|
|
#pragma once
|
2015-09-13 17:34:17 +08:00
|
|
|
|
|
|
|
#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)
|
|
|
|
{
|
|
|
|
}
|
2015-09-13 17:34:17 +08:00
|
|
|
|
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};
|
2015-09-13 17:34:17 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
};
|