entity query and record progress

This commit is contained in:
2024-03-04 20:09:39 +01:00
parent 830185c3c5
commit be610ffcad
31 changed files with 294 additions and 50 deletions
+4 -4
View File
@@ -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_;
};