R/dplyr_methods.R

Defines functions tbl.connConnection copy_to.connConnection

#' @export
tbl.connConnection <- function(src, from, ...) {
  t <- tbl(src@con, from)
  attr(t, "conn_id") <- src@id
  class(t) <- c("tbl_conn", class(t))
  t
}

#' @export
copy_to.connConnection <- function(dest, df,
                                   name = deparse(substitute(df)),
                                   overwrite = FALSE, ...) {
  ct <- copy_to(
    dest = dest@con, df = df,
    name = name, overwrite = overwrite, ...
  )
  connection_update(dest)
  ct
}

Try the connections package in your browser

Any scripts or data that you put into this service are public.

connections documentation built on Feb. 7, 2020, 5:09 p.m.