Learn R Programming

DIZutils (version 0.0.13)

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)

Arguments

conn

A DBI database connection.

Value

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

Examples

Run this code
# NOT RUN {
db_con <- DIZutils::db_connection(
  db_name = "i2b2",
  db_type = "postgres"
)

DIZutils::close_connection(
  conn = db_con
)
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab