GPUdb C++ API  Version 6.2.0.3
gpudb::CreateRoleRequest Struct Reference

A set of input parameters for createRole(const CreateRoleRequest&) const. More...

#include <gpudb/protocol/create_role.h>

Public Member Functions

 CreateRoleRequest ()
 Constructs a CreateRoleRequest object with default parameter values. More...
 
 CreateRoleRequest (const std::string &name_, const std::map< std::string, std::string > &options_)
 Constructs a CreateRoleRequest object with the specified parameters. More...
 

Public Attributes

std::string name
 
std::map< std::string, std::string > options
 

Detailed Description

A set of input parameters for createRole(const CreateRoleRequest&) const.

Creates a new role.

Definition at line 18 of file create_role.h.

Constructor & Destructor Documentation

◆ CreateRoleRequest() [1/2]

gpudb::CreateRoleRequest::CreateRoleRequest ( )
inline

Constructs a CreateRoleRequest object with default parameter values.

Definition at line 24 of file create_role.h.

◆ CreateRoleRequest() [2/2]

gpudb::CreateRoleRequest::CreateRoleRequest ( const std::string &  name_,
const std::map< std::string, std::string > &  options_ 
)
inline

Constructs a CreateRoleRequest object with the specified parameters.

Parameters
[in]name_Name of the role to be created. Must contain only lowercase letters, digits, and underscores, and cannot begin with a digit. Must not be the same name as an existing user or role.
[in]options_Optional parameters.

Definition at line 40 of file create_role.h.

Member Data Documentation

◆ name

std::string gpudb::CreateRoleRequest::name

Definition at line 46 of file create_role.h.

◆ options

std::map<std::string, std::string> gpudb::CreateRoleRequest::options

Definition at line 47 of file create_role.h.


The documentation for this struct was generated from the following file: