R/dbAppendTable_PqConnection.R

Defines functions dbAppendTable_PqConnection

Documented in dbAppendTable_PqConnection

#' @description [dbAppendTable()] is overridden because \pkg{RPostgres}
#' uses placeholders of the form `$1`, `$2` etc. instead of `?`.
#' @name postgres-tables
#' @usage NULL
dbAppendTable_PqConnection <- function(conn, name, value, copy = NULL, ..., row.names = NULL) {
  stopifnot(is.null(row.names))
  stopifnot(is.data.frame(value))
  db_append_table(conn, name, value, copy = copy, warn = TRUE)
}

#' @rdname postgres-tables
#' @export
setMethod("dbAppendTable", "PqConnection", dbAppendTable_PqConnection)

Try the RPostgres package in your browser

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

RPostgres documentation built on Oct. 23, 2023, 1:06 a.m.