smart_upload {etl} | R Documentation |
Upload a list of files to the DB
Description
Upload a list of files to the DB
Usage
smart_upload(obj, src = NULL, tablenames = NULL, ...)
Arguments
obj |
An |
src |
a list of CSV files to upload. If |
tablenames |
a list the same length as |
... |
arguments passed to |
Examples
## Not run:
if (require(RMySQL)) {
# must have pre-existing database "fec"
# if not, try
system("mysql -e 'CREATE DATABASE IF NOT EXISTS fec;'")
db <- src_mysql_cnf(dbname = "mtcars")
}
## End(Not run)
[Package etl version 0.4.1 Index]