//@author A0097630B
#include "stdafx.h"
#include "query_executor.h"

namespace You {
namespace Controller {
namespace Internal {

QueryExecutor::QueryExecutor(std::unique_ptr<You::QueryEngine::Query>&& query) {
}

Result QueryExecutor::execute() {
	QueryEngine::Response response = QueryEngine::executeQuery(
		std::move(query));
	return processResponse(response);
}

}  // namespace Internal
}  // namespace Controller
}  // namespace You

//@author A0097630B
#include "stdafx.h"
#include "query_executor.h"

namespace You {
namespace Controller {
namespace Internal {

QueryExecutor::QueryExecutor(std::unique_ptr<You::QueryEngine::Query>&& query)
: query(std::move(query)) {
}

Result QueryExecutor::execute() {
	QueryEngine::Response response = QueryEngine::executeQuery(
		std::move(query));
	return processResponse(response);
}

}  // namespace Internal
}  // namespace Controller
}  // namespace You

Store the query that is to be executed later.
Store the query that is to be executed later.
