R/show_DBIResult.R

Defines functions show_DBIResult

Documented in show_DBIResult

#' @rdname hidden_aliases
#' @param object Object to display
#' @usage NULL
show_DBIResult <- function(object) {
  # to protect drivers that fail to implement the required methods (e.g.,
  # RPostgreSQL)
  tryCatch(
    show_result(object),
    error = function(e) NULL
  )
  invisible(NULL)
}
#' @rdname hidden_aliases
#' @export
setMethod("show", signature("DBIResult"), show_DBIResult)
r-dbi/DBI documentation built on April 20, 2024, 5:32 p.m.