R/dbQuoteIdentifier_PqConnection_character.R

Defines functions dbQuoteIdentifier_PqConnection_character

Documented in dbQuoteIdentifier_PqConnection_character

#' @rdname quote
#' @usage NULL
dbQuoteIdentifier_PqConnection_character <- function(conn, x, ...) {
  if (anyNA(x)) {
    stop("Cannot pass NA to dbQuoteIdentifier()", call. = FALSE)
  }
  SQL(connection_quote_identifier(conn@ptr, x), names = names(x))
}

#' @rdname quote
#' @export
setMethod("dbQuoteIdentifier", c("PqConnection", "character"), dbQuoteIdentifier_PqConnection_character)

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.