renamed class attribute_definition to attribute
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
#include "matador/sql/internal/query_result_pk_resolver.hpp"
|
||||
#include "matador/sql/record.hpp"
|
||||
|
||||
#include "matador/object/attribute_definition.hpp"
|
||||
#include "matador/object/attribute.hpp"
|
||||
|
||||
#include <iostream>
|
||||
#include <memory>
|
||||
@@ -73,9 +73,9 @@ private:
|
||||
class query_result_impl {
|
||||
public:
|
||||
query_result_impl(std::unique_ptr<query_result_reader> &&reader,
|
||||
std::vector<object::attribute_definition> &&prototype, size_t column_index = 0);
|
||||
std::vector<object::attribute> &&prototype, size_t column_index = 0);
|
||||
query_result_impl(std::unique_ptr<query_result_reader> &&reader,
|
||||
const std::vector<object::attribute_definition> &prototype, size_t column_index = 0);
|
||||
const std::vector<object::attribute> &prototype, size_t column_index = 0);
|
||||
|
||||
template<typename ValueType>
|
||||
void on_primary_key(const char *id, ValueType &value, const utils::primary_key_attribute& attr = utils::default_pk_attributes) {
|
||||
@@ -183,7 +183,7 @@ public:
|
||||
return true;
|
||||
}
|
||||
|
||||
[[nodiscard]] const std::vector<object::attribute_definition> &prototype() const;
|
||||
[[nodiscard]] const std::vector<object::attribute> &prototype() const;
|
||||
|
||||
private:
|
||||
template<class Type>
|
||||
@@ -209,7 +209,7 @@ private:
|
||||
|
||||
protected:
|
||||
size_t column_index_ = 0;
|
||||
std::vector<object::attribute_definition> prototype_;
|
||||
std::vector<object::attribute> prototype_;
|
||||
std::unique_ptr<query_result_reader> reader_;
|
||||
detail::pk_reader pk_reader_;
|
||||
std::stack<std::type_index> type_stack_;
|
||||
|
||||
Reference in New Issue
Block a user