R/show_DBIConnection.R

Defines functions show_DBIConnection

Documented in show_DBIConnection

#' @rdname hidden_aliases
#' @param object Object to display
#' @usage NULL
show_DBIConnection <- function(object) {
  # to protect drivers that fail to implement the required methods (e.g.,
  # RPostgreSQL)
  tryCatch(
    show_connection(object),
    error = function(e) NULL
  )
  invisible(NULL)
}
#' @rdname hidden_aliases
#' @export
setMethod("show", "DBIConnection", show_DBIConnection)

Try the DBI package in your browser

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

DBI documentation built on June 18, 2022, 9:06 a.m.