2016-02-22 05:21:15 +08:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <vector>
|
|
|
|
|
|
|
|
#include "storage/model/properties/property.hpp"
|
|
|
|
|
|
|
|
using code_args_t = std::vector<Property::sptr>;
|
|
|
|
|
|
|
|
struct QueryStripped
|
|
|
|
{
|
2016-07-02 05:05:03 +08:00
|
|
|
QueryStripped(const std::string &&query, uint64_t hash,
|
|
|
|
code_args_t &&arguments)
|
|
|
|
: query(std::forward<const std::string>(query)), hash(hash),
|
2016-06-06 17:29:52 +08:00
|
|
|
arguments(std::forward<code_args_t>(arguments))
|
|
|
|
{
|
|
|
|
}
|
2016-02-22 05:21:15 +08:00
|
|
|
|
2016-06-06 17:29:52 +08:00
|
|
|
QueryStripped(QueryStripped &other) = delete;
|
|
|
|
QueryStripped(QueryStripped &&other) = default;
|
2016-02-22 05:21:15 +08:00
|
|
|
|
|
|
|
code_args_t arguments;
|
2016-07-02 05:05:03 +08:00
|
|
|
uint64_t hash;
|
|
|
|
std::string query;
|
2016-02-22 05:21:15 +08:00
|
|
|
};
|