added blob type (progress)
This commit is contained in:
+3
-1
@@ -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
|
||||
|
||||
@@ -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,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);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user