update_ddv: Wrapper function for complete ELT pipeline

View source: R/write.R

update_ddvR Documentation

Wrapper function for complete ELT pipeline

Description

This wrapper function runs the whole pipeline in the ddv_import and then ddv_transform functions and finally write_to_db, while logging everything to the sink and emailing the logs to the listed recipients

Usage

update_ddv(
  new_file,
  tbl = "test123",
  email = "maja.zaloznik@gov.si",
  path = "O:/Avtomatizacija/furs-surs-soap/data/"
)

Arguments

new_file

base filename of the appropriate .csv file that is located in O:/Avtomatizacija/furs-surs-soap/data/

tbl

which table in the database to write to. Default is test123, but the real one is at davcne_blagajne

email

One or more emails to send logs to - as character vector. If NA, no emails are sent.

path

- path for file which might require UNC style

Value

Nothing, just side effects :). Writes to the database and emails logs.


majazaloznik/ddvR documentation built on Feb. 13, 2025, 12:32 p.m.