#ifndef QUERY_OPTIONAL_HPP #define QUERY_OPTIONAL_HPP #include "matador/utils/access.hpp" #include "matador/utils/field_attributes.hpp" #include #include namespace matador::test { struct optional { unsigned int id{}; std::optional name; std::optional age{}; template void process(Operator &op) { namespace field = matador::access; using namespace matador::utils; field::primary_key(op, "id", id); field::attribute(op, "name", name, 255); field::attribute(op, "age", age); } }; } #endif //QUERY_OPTIONAL_HPP