#pragma once #include #include #include #include namespace DB { /// Information about a role. struct EnabledRolesInfo { std::vector current_roles; std::vector enabled_roles; std::vector enabled_roles_with_admin_option; std::unordered_map names_of_roles; AccessRights access; AccessRights access_with_grant_option; Strings getCurrentRolesNames() const; Strings getEnabledRolesNames() const; friend bool operator ==(const EnabledRolesInfo & lhs, const EnabledRolesInfo & rhs); friend bool operator !=(const EnabledRolesInfo & lhs, const EnabledRolesInfo & rhs) { return !(lhs == rhs); } }; }