introduced field_attributes shortcuts and added method on_base() to all processor classes

This commit is contained in:
2026-04-22 11:03:33 +02:00
parent 78eb5d04cd
commit 9b25f7f556
68 changed files with 248 additions and 151 deletions
+4 -2
View File
@@ -2,6 +2,7 @@
#define USERINFO_HPP
#include "matador/utils/access.hpp"
#include "matador/utils/field_attributes.hpp"
namespace work::core {
struct UserInfo {
@@ -12,9 +13,10 @@ struct UserInfo {
template<typename Operator>
void process( Operator& op ) {
namespace field = matador::access;
using namespace matador;
field::attribute( op, "user_session_id", user_session_id );
field::attribute( op, "user_role", user_role, 255 );
field::attribute( op, "database_name", database_name, 255 );
field::attribute( op, "user_role", user_role, VarChar255 );
field::attribute( op, "database_name", database_name, VarChar255 );
}
};
}