initial matador ng commit

This commit is contained in:
2025-02-02 20:37:12 +01:00
parent 19de5714f4
commit ded3daceb3
378 changed files with 14913 additions and 13431 deletions
+19
View File
@@ -0,0 +1,19 @@
#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<record>(const std::vector<column_definition> &prototype)
{
auto result = std::make_unique<record>();
for (const auto &col: prototype) {
result->append({col.name(), col.type(), col.attributes().size(), col.index()});
}
return result.release();
}
} // namespace matador::sql