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

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

#include <gpudb/protocol/create_datasource.h>

Public Member Functions

 CreateDatasourceRequest ()
 Constructs a CreateDatasourceRequest object with default parameters. More...
 
 CreateDatasourceRequest (const std::string &name_, const std::string &location_, const std::string &userName_, const std::string &password_, const std::map< std::string, std::string > &options_)
 Constructs a CreateDatasourceRequest object with the specified parameters. More...
 

Public Attributes

std::string name
 Name of the data source to be created. More...
 
std::string location
 Location of the remote storage in 'storage_provider_type://[storage_path[:storage_port]]' format. More...
 
std::string userName
 Name of the remote system user; may be an empty string. More...
 
std::string password
 Password for the remote system user; may be an empty string. More...
 
std::map< std::string, std::string > options
 Optional parameters. More...
 

Detailed Description

A set of parameters for GPUdb::createDatasource.

Creates a data source, which contains the location and connection information for a data store that is external to the database.

Definition at line 20 of file create_datasource.h.

Constructor & Destructor Documentation

◆ CreateDatasourceRequest() [1/2]

gpudb::CreateDatasourceRequest::CreateDatasourceRequest ( )
inline

Constructs a CreateDatasourceRequest object with default parameters.

Definition at line 25 of file create_datasource.h.

◆ CreateDatasourceRequest() [2/2]

gpudb::CreateDatasourceRequest::CreateDatasourceRequest ( const std::string &  name_,
const std::string &  location_,
const std::string &  userName_,
const std::string &  password_,
const std::map< std::string, std::string > &  options_ 
)
inline

Constructs a CreateDatasourceRequest object with the specified parameters.

Parameters
[in]name_Name of the data source to be created.
[in]location_Location of the remote storage in 'storage_provider_type://[storage_path[:storage_port]]' format. Supported storage provider types are 'azure', 'gcs', 'hdfs', 'jdbc', 'kafka', 'confluent', and 's3'.
[in]userName_Name of the remote system user; may be an empty string
[in]password_Password for the remote system user; may be an empty string
[in]options_Optional parameters. The default value is an empty map.

Definition at line 328 of file create_datasource.h.

Member Data Documentation

◆ location

std::string gpudb::CreateDatasourceRequest::location

Location of the remote storage in 'storage_provider_type://[storage_path[:storage_port]]' format.

Supported storage provider types are 'azure', 'gcs', 'hdfs', 'jdbc', 'kafka', 'confluent', and 's3'.

Definition at line 349 of file create_datasource.h.

◆ name

std::string gpudb::CreateDatasourceRequest::name

Name of the data source to be created.

Definition at line 340 of file create_datasource.h.

◆ options

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

Optional parameters.

The default value is an empty map.

Definition at line 555 of file create_datasource.h.

◆ password

std::string gpudb::CreateDatasourceRequest::password

Password for the remote system user; may be an empty string.

Definition at line 359 of file create_datasource.h.

◆ userName

std::string gpudb::CreateDatasourceRequest::userName

Name of the remote system user; may be an empty string.

Definition at line 354 of file create_datasource.h.


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