added sqlite query result and enhanced column generator and value extractor
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
#ifndef QUERY_RECORD_HPP
|
||||
#define QUERY_RECORD_HPP
|
||||
|
||||
#include "matador/utils/access.hpp"
|
||||
|
||||
#include "matador/sql/column.hpp"
|
||||
|
||||
#include <vector>
|
||||
@@ -23,6 +25,15 @@ public:
|
||||
record(std::initializer_list<column> columns);
|
||||
~record() = default;
|
||||
|
||||
template<class Operator>
|
||||
void process(Operator &op)
|
||||
{
|
||||
for(auto &col : columns_) {
|
||||
// Todo: Find a solution to handle a column with process
|
||||
int todo{};
|
||||
matador::utils::access::attribute(op, col.name().c_str(), todo, col.attributes());
|
||||
}
|
||||
}
|
||||
template < typename Type >
|
||||
void append(const std::string &name, long size = -1)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user