#include "matador/sql/query_result.hpp" #include "matador/sql/record.hpp" #include "matador/sql/internal/query_result_impl.hpp" namespace matador::sql::detail { record create_prototype(const std::vector &prototype) { record rec; int index{0}; for (const auto &col: prototype) { rec.append({ col.name(), col.type(), col.attributes().options(), col.attributes().size(), index++ }); } return rec; } } // namespace matador::sql