create_datasource
- create_datasource(
name: string,
location: string,
user_name: string,
password: string,
options?: Record<string, string>,
callback?: GPUdbCallback,
): Promise<CreateDatasourceResponse>Parameters
- name: string
Name of the data source to be created.
- location: string
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’.
- user_name: string
Name of the remote system user; may be an empty string.
- password: string
Password for the remote system user; may be an empty string.
Optionaloptions: Record<string, string>Optional parameters.
Optionalcallback: GPUdbCallbackOptional callback function
Returns Promise<CreateDatasourceResponse>
Promise<Types.CreateDatasourceResponse> - Promise resolving to the response
- Defined in src/GPUdb.ts:5714
- name: string
create_datasource_request
- create_datasource_request(
request: CreateDatasourceRequest,
callback?: GPUdbCallback,
): Promise<CreateDatasourceResponse>Creates a data source, which contains the location and connection information for a data store that is external to the database.
Parameters
- request: CreateDatasourceRequest
Request object containing the parameters for the operation
Optionalcallback: GPUdbCallbackOptional callback function
Returns Promise<CreateDatasourceResponse>
Promise<Types.CreateDatasourceResponse> - Promise resolving to the response
- Defined in src/GPUdb.ts:5680
- request: CreateDatasourceRequest
Creates a data source, which contains the location and connection information for a data store that is external to the database.