// //////////////////////////////////////////////////////////////////////////// ColumnAttrList &ColumnAttr::GetColumnAttrList(SQLHSTMT statement_handle, ColumnAttrList &out_list) { SQLSMALLINT col_count; NumResultCols(statement_handle, &col_count); ColumnAttrList tmp_list; tmp_list.resize(col_count); SQLSMALLINT col_index; for (col_index = 0; col_index < col_count; ++col_index) ColumnAttr(statement_handle, col_index + 1).swap(tmp_list[col_index]); out_list.swap(tmp_list); return(out_list); }
// //////////////////////////////////////////////////////////////////////////// void ColumnAttr::LoadColumnAttr(SQLHSTMT statement_handle, SQLSMALLINT column_number) { ColumnAttr(statement_handle, column_number).swap(*this); }
inline ColumnAttr Spec::get_column_attr(size_t ndx) const noexcept { REALM_ASSERT(ndx < get_column_count()); return ColumnAttr(m_attr.get(ndx)); }