6 #ifndef __CREATE_ROLE_H__ 7 #define __CREATE_ROLE_H__ 24 options(std::map<std::string, std::string>())
44 CreateRoleRequest(
const std::string& name_,
const std::map<std::string, std::string>& options_):
66 std::map<std::string, std::string>
options;
72 template<>
struct codec_traits<
gpudb::CreateRoleRequest>
76 ::avro::encode(e, v.
name);
82 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
84 const std::vector<size_t> fo = rd->fieldOrder();
86 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
91 ::avro::decode(d, v.
name);
105 ::avro::decode(d, v.
name);
125 info(std::map<std::string, std::string>())
137 std::map<std::string, std::string>
info;
143 template<>
struct codec_traits<
gpudb::CreateRoleResponse>
147 ::avro::encode(e, v.
name);
148 ::avro::encode(e, v.
info);
153 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
155 const std::vector<size_t> fo = rd->fieldOrder();
157 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
162 ::avro::decode(d, v.
name);
166 ::avro::decode(d, v.
info);
176 ::avro::decode(d, v.
name);
177 ::avro::decode(d, v.
info);
183 #endif // __CREATE_ROLE_H__ std::string name
Name of the role to be created.
A set of parameters for GPUdb::createRole.
A set of results returned by GPUdb::createRole.
std::map< std::string, std::string > options
Optional parameters.
CreateRoleResponse()
Constructs a CreateRoleResponse object with default parameters.
CreateRoleRequest()
Constructs a CreateRoleRequest object with default parameters.
CreateRoleRequest(const std::string &name_, const std::map< std::string, std::string > &options_)
Constructs a CreateRoleRequest object with the specified parameters.
std::string name
Value of name.
std::map< std::string, std::string > info
Additional information.