replyr_copy_to: Copy data to remote service.

Description Usage Arguments Value Examples

View source: R/copyToFrom.R

Description

Copy data to remote service.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
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

1
2
3
4
5
6
7
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)
}

WinVector/replyr documentation built on Oct. 22, 2020, 8:07 p.m.