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)
rstats-db/RPostgres documentation built on April 20, 2024, 11:55 a.m.