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

    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: GPUdbCallback

      Optional callback function

    Returns Promise<CreateDatasourceResponse>

    Promise<Types.CreateDatasourceResponse> - Promise resolving to the response