added blob type (progress)
This commit is contained in:
@@ -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