R/dbAppendTable_AdbiConnection_character_data.frame.R

Defines functions dbAppendTable_AdbiConnection

Documented in dbAppendTable_AdbiConnection

#' @rdname AdbiConnection-class
#' @usage NULL
dbAppendTable_AdbiConnection <- function(conn, name, value, ...,
    row.names = NULL) {

  if (!is.null(row.names)) {
    stop("Can't pass `row.names` to `dbAppendTable()`", call. = FALSE)
  }

  query <- sqlAppendTable(
    con = conn,
    table = name,
    values = value,
    row.names = row.names,
    ...
  )

  dbExecute(conn, query)
}

#' @rdname AdbiConnection-class
#' @export
setMethod(
  "dbAppendTable",
  signature("AdbiConnection"),
  dbAppendTable_AdbiConnection
)

Try the adbi package in your browser

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

adbi documentation built on May 29, 2024, 7:12 a.m.