Learn R Programming

DIZutils (version 0.1.3)

close_connection: close_connection helper function

Description

Internal function to close the database connection. The function is just a wrapper around `RPostgres::dbDisconnect`

Usage

close_connection(conn)

Value

The function is just a wrapper around RPostgres::dbDisconnect / DBI::dbDisconnect and does not return any value.

Arguments

conn

A DBI database connection.

Examples

Run this code
if (FALSE) {
db_con <- DIZutils::db_connection(
  db_name = "i2b2",
  db_type = "postgres"
)

DIZutils::close_connection(
  conn = db_con
)
}

Run the code above in your browser using DataLab