backup_tbl: Download a tbl from a db connection and write to a csv

Description Usage Arguments Value

View source: R/backup.R

Description

Download a tbl from a db connection and write to a csv

Usage

1
backup_tbl(tbl_name, src, output_dir)

Arguments

tbl_name

the name of a database table

src

a dplyr-managed connection to a database

output_dir

directory where the csv is to be saved

Value

A copy of the table is downloaded from the database and returned. A blank data-frame is returned if the table could not be downloaded. The contents of the table are written to [output_dir]/[tbl_name].csv.


LearningToTalk/L2TDatabase documentation built on June 24, 2020, 3:45 a.m.