entity query and record progress
This commit is contained in:
@@ -107,13 +107,13 @@ private:
|
||||
namespace detail {
|
||||
|
||||
template < typename Type >
|
||||
Type* create_prototype(const record &/*prototype*/)
|
||||
Type* create_prototype(const std::vector<column_definition> &/*prototype*/)
|
||||
{
|
||||
return new Type{};
|
||||
}
|
||||
|
||||
template <>
|
||||
record* create_prototype<record>(const record &prototype);
|
||||
record* create_prototype<record>(const std::vector<column_definition> &prototype);
|
||||
|
||||
}
|
||||
|
||||
@@ -128,7 +128,7 @@ public:
|
||||
explicit query_result(std::unique_ptr<query_result_impl> impl)
|
||||
: impl_(std::move(impl)) {}
|
||||
|
||||
query_result(std::unique_ptr<query_result_impl> impl, record record_prototype)
|
||||
query_result(std::unique_ptr<query_result_impl> impl, std::vector<column_definition> record_prototype)
|
||||
: record_prototype_(std::move(record_prototype))
|
||||
, impl_(std::move(impl)) {}
|
||||
|
||||
@@ -151,7 +151,7 @@ private:
|
||||
}
|
||||
|
||||
private:
|
||||
record record_prototype_;
|
||||
std::vector<column_definition> record_prototype_;
|
||||
std::unique_ptr<query_result_impl> impl_;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user