R/dbDisconnect.R

Defines functions close_db_connection

Documented in close_db_connection

#' Disconnect the database connection.
#'
#' Disconnect the database connection.
#'
#' @param db An active database connection
#' @return No return value, function called to close the connection to the database.
#' @export
#' @examples
#' \dontrun{
#'   db <- connect_online()
#'   close_db_connection(db)
#' }
#'
close_db_connection <- function(db) {
    DBI::dbDisconnect(db)
}

Try the crestr package in your browser

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

crestr documentation built on Jan. 6, 2023, 5:23 p.m.