added belongs-to-eager test

This commit is contained in:
2026-01-10 18:54:18 +01:00
parent b9f5819be5
commit db8e137c11
20 changed files with 403 additions and 278 deletions
+3 -7
View File
@@ -8,21 +8,18 @@
#include <cstdint>
namespace matador::test {
enum class Color : uint8_t {
Green, Red, Blue, Yellow, Black, White, Brown
};
struct location
{
struct location {
unsigned int id{};
std::string name;
coordinate coord;
Color color{Color::Green};
template < class Operator >
void process(Operator &op)
{
template<class Operator>
void process(Operator &op) {
namespace field = matador::access;
field::primary_key(op, "id", id);
field::attribute(op, "name", name, 255);
@@ -30,7 +27,6 @@ struct location
field::attribute(op, "color", color);
}
};
}
#endif //QUERY_LOCATION_HPP