CreateDataSource: Create a data source.

View source: R/DataSources.R

CreateDataSourceR Documentation

Create a data source.

Description

Create a data source.

Usage

CreateDataSource(
  type,
  canonicalName,
  dataStoreId,
  query = NULL,
  table = NULL,
  schema = NULL,
  partitionColumn = NULL,
  fetchSize = NULL
)

Arguments

type

character. The type of data source.

canonicalName

character. The user-friendly name of the data source.

dataStoreId

character. The ID of the data store to connect to.

query

character. A query to execute on the data store to get the data. Optional.

table

character. The specified database table. Optional.

schema

character. The specified database schema. Optional.

partitionColumn

character. The name of the partition column. Optional.

fetchSize

integer. a user specified fetch size in the range [1, 20000]. Optional. By default a fetchSize will be assigned to balance throughput and memory usage

Examples

## Not run: 
 dataStoreId <- "5c1303269300d900016b41a7"
 CreateDataSource(type = "jdbc",
                  canonicalName = "Airline stats after 1995",
                  dataStoreId = dataStoreId,
                  query = 'SELECT * FROM airlines10mb WHERE "Year" >= 1995;')

## End(Not run)

datarobot documentation built on May 29, 2024, 4:36 a.m.