Create a new datasource If check_if_exist is enabled, the function will check if a datasource with the same name already exists. If yes, it will return a message and the information of the existing datasource instead of creating a new one.
create_datasource(
project_id,
connector_id,
name,
path = "",
database = "",
table = "",
bucket = "",
request = "",
check_if_exist = FALSE
)
id of the project, can be obtained with get_projects().
connector_id linked to the datasource.
datasource name.
datasource path (for SFTP & FTP connector).
datasource database (for SQL connector).
datasource table (for SQL connector).
datasource bucket (for S3 connector).
datasource request (for SQLconnector).
boolean (FALSE by default). If TRUE, makes extra checks to see if a datasource with the same name is already existing.
list - parsed content of the datasource.