GPUdb C++ API  Version 7.2.2.4
gpudb::GrantPermissionTableRequest Struct Reference

A set of parameters for GPUdb::grantPermissionTable. More...

#include <gpudb/protocol/grant_permission_table.h>

Public Member Functions

 GrantPermissionTableRequest ()
 Constructs a GrantPermissionTableRequest object with default parameters. More...
 
 GrantPermissionTableRequest (const std::string &name_, const std::string &permission_, const std::string &tableName_, const std::string &filterExpression_, const std::map< std::string, std::string > &options_)
 Constructs a GrantPermissionTableRequest object with the specified parameters. More...
 

Public Attributes

std::string name
 Name of the user or role to which the permission will be granted. More...
 
std::string permission
 Permission to grant to the user or role. More...
 
std::string tableName
 Name of the table to which the permission grants access, in [ schema_name. ]table_name format, using standard name resolution rules. More...
 
std::string filterExpression
 Optional filter expression to apply to this grant. More...
 
std::map< std::string, std::string > options
 Optional parameters. More...
 

Detailed Description

A set of parameters for GPUdb::grantPermissionTable.

Grants a table-level permission to a user or role.

Definition at line 18 of file grant_permission_table.h.

Constructor & Destructor Documentation

◆ GrantPermissionTableRequest() [1/2]

gpudb::GrantPermissionTableRequest::GrantPermissionTableRequest ( )
inline

Constructs a GrantPermissionTableRequest object with default parameters.

Definition at line 24 of file grant_permission_table.h.

◆ GrantPermissionTableRequest() [2/2]

gpudb::GrantPermissionTableRequest::GrantPermissionTableRequest ( const std::string &  name_,
const std::string &  permission_,
const std::string &  tableName_,
const std::string &  filterExpression_,
const std::map< std::string, std::string > &  options_ 
)
inline

Constructs a GrantPermissionTableRequest object with the specified parameters.

Parameters
[in]name_Name of the user or role to which the permission will be granted. Must be an existing user or role.
[in]permission_Permission to grant to the user or role. Supported values:
[in]tableName_Name of the table to which the permission grants access, in [schema_name.]table_name format, using standard name resolution rules. Must be an existing table, view, or schema. If a schema, the permission also applies to tables and views in the schema.
[in]filterExpression_Optional filter expression to apply to this grant. Only rows that match the filter will be affected. The default value is ''.
[in]options_Optional parameters. The default value is an empty map.

Definition at line 87 of file grant_permission_table.h.

Member Data Documentation

◆ filterExpression

std::string gpudb::GrantPermissionTableRequest::filterExpression

Optional filter expression to apply to this grant.

Only rows that match the filter will be affected. The default value is ''.

Definition at line 139 of file grant_permission_table.h.

◆ name

std::string gpudb::GrantPermissionTableRequest::name

Name of the user or role to which the permission will be granted.

Must be an existing user or role.

Definition at line 100 of file grant_permission_table.h.

◆ options

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

Optional parameters.

The default value is an empty map.

Definition at line 150 of file grant_permission_table.h.

◆ permission

std::string gpudb::GrantPermissionTableRequest::permission

Permission to grant to the user or role.

Supported values:

Definition at line 123 of file grant_permission_table.h.

◆ tableName

std::string gpudb::GrantPermissionTableRequest::tableName

Name of the table to which the permission grants access, in [ schema_name. ]table_name format, using standard name resolution rules.

Must be an existing table, view, or schema. If a schema, the permission also applies to tables and views in the schema.

Definition at line 133 of file grant_permission_table.h.


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