l2t_backup: Download each tbl in a database and write to csv

Description Usage Arguments Value

View source: R/backup.R

Description

Download each tbl in a database and write to csv

Usage

1
l2t_backup(src, backup_dir)

Arguments

src

a dplyr-managed connection to a database

backup_dir

location where to save the backed up table

Value

Each table in the database is downloaded and saved via backup_tbl. The downloaded tables are returned in a list of dataframes. The csvs are saved together in a timestamped folder inside of the backup_dir folder, so the path to a particular's table's csv file would be [backup_dir]/[timestamp]/[table_name].csv.


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