added blob type (progress)

This commit is contained in:
2024-01-22 07:11:35 +01:00
parent b158b41556
commit 102a7fc604
24 changed files with 240 additions and 149 deletions
+3 -1
View File
@@ -32,7 +32,9 @@ add_executable(tests QueryBuilderTest.cpp
models/location.hpp
TypeTraitsTest.cpp
Databases.hpp
models/optional.hpp)
models/optional.hpp
ConvertTest.cpp)
target_link_libraries(tests PRIVATE
Catch2::Catch2WithMain
matador
+9
View File
@@ -0,0 +1,9 @@
#include <catch2/catch_test_macros.hpp>
#include "matador/sql/convert.hpp"
using namespace matador::sql;
TEST_CASE("Test convert function", "[convert]") {
}
+3
View File
@@ -3,6 +3,7 @@
#include "matador/utils/access.hpp"
#include "matador/utils/field_attributes.hpp"
#include "matador/utils/types.hpp"
#include <string>
@@ -13,6 +14,7 @@ struct person
unsigned long id{};
std::string name;
unsigned int age{};
utils::blob image;
template<class Operator>
void process(Operator &op) {
@@ -21,6 +23,7 @@ struct person
field::primary_key(op, "id", id);
field::attribute(op, "name", name, 255);
field::attribute(op, "age", age);
field::attribute(op, "image", image);
}
};