introduced field_attributes shortcuts and added method on_base() to all processor classes
This commit is contained in:
@@ -24,8 +24,8 @@ struct airplane {
|
||||
namespace field = matador::access;
|
||||
using namespace matador::utils;
|
||||
field::primary_key(op, "id", id);
|
||||
field::attribute(op, "brand", brand, 255);
|
||||
field::attribute(op, "model", model, 255);
|
||||
field::attribute(op, "brand", brand, UniqueVarChar255);
|
||||
field::attribute(op, "model", model, UniqueVarChar255);
|
||||
}
|
||||
};
|
||||
}
|
||||
@@ -36,8 +36,8 @@ struct airplane {
|
||||
// namespace field = matador::access;
|
||||
// using namespace matador::utils;
|
||||
// field::primary_key(op, "id", object.id);
|
||||
// field::attribute(op, "brand", object.brand, 255);
|
||||
// field::attribute(op, "model", object.model, 255);
|
||||
// field::attribute(op, "brand", object.brand, UniqueVarChar255);
|
||||
// field::attribute(op, "model", object.model, UniqueVarChar255);
|
||||
// }
|
||||
// template<class Operator>
|
||||
// void process(Operator &op, const matador::test::airplane &object) {
|
||||
|
||||
Reference in New Issue
Block a user