Skip to contents

Initialize all etl dependencies

Usage

init_etl(
  script_name = "",
  project_name = "",
  project_instance = "",
  fake_runtime = NULL,
  log_db_drv = RMariaDB::MariaDB()
)

Arguments

script_name

name passed to set_script_name

project_name

name passed to set_project_name

project_instance

name passed to set_project_instance

fake_runtime

An optional asserted script run time passed to set_script_run_time, defaults to the time this function is called

log_db_drv,

an object that inherits from DBIDriver (e.g. RMariaDB::MariaDB()), or an existing DBIConnection object (in order to clone an existing connection).

Examples

if (FALSE) {
  init_etl("name_of_file")
}