renamed class attribute_definition to attribute
This commit is contained in:
@@ -344,7 +344,7 @@ void query_create_part::accept(query_part_visitor &visitor)
|
||||
visitor.visit(*this);
|
||||
}
|
||||
|
||||
query_create_table_part::query_create_table_part(class table table, std::vector<object::attribute_definition> columns)
|
||||
query_create_table_part::query_create_table_part(class table table, std::vector<object::attribute> columns)
|
||||
: query_part(sql::dialect_token::Table)
|
||||
, table_(std::move(table))
|
||||
, columns_(std::move(columns)) {}
|
||||
@@ -354,7 +354,7 @@ const table &query_create_table_part::table() const
|
||||
return table_;
|
||||
}
|
||||
|
||||
const std::vector<object::attribute_definition> &query_create_table_part::columns() const
|
||||
const std::vector<object::attribute> &query_create_table_part::columns() const
|
||||
{
|
||||
return columns_;
|
||||
}
|
||||
|
||||
@@ -7,14 +7,14 @@ namespace matador::sql {
|
||||
detail::pk_reader::pk_reader(query_result_reader &reader)
|
||||
: reader_(reader) {}
|
||||
|
||||
query_result_impl::query_result_impl(std::unique_ptr<query_result_reader> &&reader, std::vector<object::attribute_definition> &&prototype, const size_t column_index)
|
||||
query_result_impl::query_result_impl(std::unique_ptr<query_result_reader> &&reader, std::vector<object::attribute> &&prototype, const size_t column_index)
|
||||
: column_index_(column_index)
|
||||
, prototype_(std::move(prototype))
|
||||
, reader_(std::move(reader))
|
||||
, pk_reader_(*reader_)
|
||||
{}
|
||||
|
||||
query_result_impl::query_result_impl(std::unique_ptr<query_result_reader> &&reader, const std::vector<object::attribute_definition> &prototype, const size_t column_index)
|
||||
query_result_impl::query_result_impl(std::unique_ptr<query_result_reader> &&reader, const std::vector<object::attribute> &prototype, const size_t column_index)
|
||||
: column_index_(column_index)
|
||||
, prototype_(prototype)
|
||||
, reader_(std::move(reader))
|
||||
@@ -43,7 +43,7 @@ query_result_impl::on_attribute(const char *id, utils::value &val, const utils::
|
||||
reader_->read_value(id, column_index_++, val, attr.size());
|
||||
}
|
||||
|
||||
const std::vector<object::attribute_definition>& query_result_impl::prototype() const
|
||||
const std::vector<object::attribute>& query_result_impl::prototype() const
|
||||
{
|
||||
return prototype_;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user