Skip to contents

Set data source

Usage

setup_source(
  driver = getOption("tarflow.driver"),
  dsn = getOption("tarflow.dsn"),
  group = getOption("tarflow.group")
)

Arguments

driver

The driver used. Set as an option of "tarflow.driver". Options are odbc::odbc() and RMariaDB::MariaDB(), both of which need pre-configurations. Default to first available one.

dsn

The data source name of an ODBC database connector. See odbc::dbConnect() for more information. Used when driver is set as odbc::odbc().

group

Section identifier in the default.file. See RMariaDB::MariaDB() for more information. Used when driver is set as RMariaDB::MariaDB().

Value

An S3 class of tarflow.source with the options.