some sql classes refactorings like column and table structs to classes

This commit is contained in:
Sascha Kühl
2025-11-14 16:16:07 +01:00
parent 34e6d41554
commit d1731a7f15
22 changed files with 428 additions and 130 deletions
+3 -3
View File
@@ -67,14 +67,14 @@ const std::vector<record::field_ref> &record::columns() const
// return columns_[pk_index_];
//}
const field &record::at(const column &col) const
const field &record::at(const sql::column &col) const
{
const auto &res = fields_by_name_.at(col.name);
const auto &res = fields_by_name_.at(col.column_name());
const auto &f = res.first;
return f;
}
const field &record::at(size_t index) const
const field &record::at(const size_t index) const
{
return fields_.at(index);
}