added belongs-to-eager test
This commit is contained in:
@@ -6,19 +6,17 @@
|
||||
#include <string>
|
||||
|
||||
namespace matador::test {
|
||||
|
||||
struct supplier {
|
||||
unsigned int id{};
|
||||
std::string name;
|
||||
unsigned int id{};
|
||||
std::string name;
|
||||
|
||||
template<class Operator>
|
||||
void process(Operator &op) {
|
||||
namespace field = matador::access;
|
||||
using namespace matador::utils;
|
||||
field::primary_key(op, "id", id);
|
||||
field::attribute(op, "name", name, 255);
|
||||
}
|
||||
template<class Operator>
|
||||
void process(Operator &op) {
|
||||
namespace field = matador::access;
|
||||
using namespace matador::utils;
|
||||
field::primary_key(op, "id", id);
|
||||
field::attribute(op, "name", name, 255);
|
||||
}
|
||||
};
|
||||
|
||||
}
|
||||
#endif //QUERY_SUPPLIER_HPP
|
||||
|
||||
Reference in New Issue
Block a user