query parts progress
This commit is contained in:
+10
-3
@@ -1,4 +1,5 @@
|
||||
#include "matador/sql/record.hpp"
|
||||
#include "matador/sql/column.hpp"
|
||||
|
||||
#include <algorithm>
|
||||
#include <stdexcept>
|
||||
@@ -60,12 +61,18 @@ const column_definition &record::primary_key() const
|
||||
return columns_[pk_index_];
|
||||
}
|
||||
|
||||
const column_definition &record::at(const std::string &name) const
|
||||
const column_definition &record::at(const column &col) const
|
||||
{
|
||||
auto ref = columns_by_name_.at(name).first;
|
||||
return columns_by_name_.at(name).first;
|
||||
auto ref = columns_by_name_.at(col.name).first;
|
||||
return columns_by_name_.at(col.name).first;
|
||||
}
|
||||
|
||||
//const column_definition &record::at(const std::string &name) const
|
||||
//{
|
||||
// auto ref = columns_by_name_.at(name).first;
|
||||
// return columns_by_name_.at(name).first;
|
||||
//}
|
||||
|
||||
const column_definition &record::at(size_t index) const
|
||||
{
|
||||
return columns_.at(index);
|
||||
|
||||
Reference in New Issue
Block a user