#include "matador/sql/query_result.hpp" #include "matador/sql/record.hpp" #include "matador/sql/internal/query_result_impl.hpp" namespace matador::sql::detail { template<> record *create_prototype(const std::vector &prototype) { auto result = std::make_unique(); for (const auto &col: prototype) { result->append({ col.name(), col.type(), col.attributes().options(), col.attributes().size(), col.index() }); } return result.release(); } } // namespace matador::sql