6 #ifndef __CREATE_USER_INTERNAL_H__ 7 #define __CREATE_USER_INTERNAL_H__ 28 options(std::map<std::string, std::string>())
176 template<>
struct codec_traits<
gpudb::CreateUserInternalRequest>
180 ::avro::encode(e, v.
name);
187 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
189 const std::vector<size_t> fo = rd->fieldOrder();
191 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
196 ::avro::decode(d, v.
name);
214 ::avro::decode(d, v.
name);
237 info(std::map<std::string, std::string>())
249 std::map<std::string, std::string>
info;
255 template<>
struct codec_traits<
gpudb::CreateUserInternalResponse>
259 ::avro::encode(e, v.
name);
260 ::avro::encode(e, v.
info);
265 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
267 const std::vector<size_t> fo = rd->fieldOrder();
269 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
274 ::avro::decode(d, v.
name);
278 ::avro::decode(d, v.
info);
288 ::avro::decode(d, v.
name);
289 ::avro::decode(d, v.
info);
295 #endif // __CREATE_USER_INTERNAL_H__ A set of parameters for GPUdb::createUserInternal.
std::string password
Initial password of the user to be created.
std::string name
Name of the user to be created.
A set of results returned by GPUdb::createUserInternal.
std::map< std::string, std::string > options
Optional parameters.
CreateUserInternalResponse()
Constructs a CreateUserInternalResponse object with default parameters.
std::string name
Value of name.
std::map< std::string, std::string > info
Additional information.
CreateUserInternalRequest()
Constructs a CreateUserInternalRequest object with default parameters.
CreateUserInternalRequest(const std::string &name_, const std::string &password_, const std::map< std::string, std::string > &options_)
Constructs a CreateUserInternalRequest object with the specified parameters.