R/connection-code.R

Defines functions connection_code

Documented in connection_code

#' Displays the code that will be used to recreate the connection
#' @param con A `connConnection` object
#' @returns It prints out the lines of code that this package will use
#' to reconnect to the database.
#' @export
connection_code <- function(con) {
  session <- conn_session_get(con@id)
  code <- dbi_build_code(session)
  cat(code)
}
edgararuiz/connections documentation built on Jan. 26, 2024, 9:23 p.m.