replyr (version 1.0.5)

replyr_copy_to: Copy data to remote service.

Description

Copy data to remote service.

Usage

replyr_copy_to(dest, df, name = paste(deparse(substitute(df)), collapse =
  " "), ..., rowNumberColumn = NULL, temporary = FALSE,
  overwrite = TRUE, maxrow = 1e+06)

Arguments

dest

remote data source

df

local data frame

name

name for new remote table

...

force later values to be bound by name

rowNumberColumn

if not null name to add row numbers to

temporary

logical, if TRUE try to create a temporary table

overwrite

logical, if TRUE try to overwrite

maxrow

max rows to allow in a remote to remote copy.

Value

remote handle

Examples

Run this code
# NOT RUN {

if (requireNamespace("RSQLite", quietly = TRUE)) {
  my_db <- DBI::dbConnect(RSQLite::SQLite(), ":memory:")
  RSQLite::initExtension(my_db)
  d <- replyr_copy_to(my_db, data.frame(x=c(1,2)), 'd')
  print(d)
  DBI::dbDisconnect(my_db)
}

# }

Run the code above in your browser using DataCamp Workspace