create_role
- create_role(
name: string,
options?: Record<string, string>,
callback?: GPUdbCallback,
): Promise<CreateRoleResponse>Parameters
- name: string
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.
Optionaloptions: Record<string, string>Optional parameters.
Optionalcallback: GPUdbCallbackOptional callback function
Returns Promise<CreateRoleResponse>
Promise<Types.CreateRoleResponse> - Promise resolving to the response
- Defined in src/GPUdb.ts:6443
- name: string
create_role_request
- create_role_request(
request: CreateRoleRequest,
callback?: GPUdbCallback,
): Promise<CreateRoleResponse>Creates a new role.
Note: This method should be used for on-premise deployments only.
Parameters
- request: CreateRoleRequest
Request object containing the parameters for the operation
Optionalcallback: GPUdbCallbackOptional callback function
Returns Promise<CreateRoleResponse>
Promise<Types.CreateRoleResponse> - Promise resolving to the response
- Defined in src/GPUdb.ts:6418
- request: CreateRoleRequest
Creates a new role.
Note: This method should be used for on-premise deployments only.