close_connection: close_connection helper function

View source: R/close_connection.R

close_connectionR Documentation

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

## Not run: 
db_con <- DIZutils::db_connection(
  db_name = "i2b2",
  db_type = "postgres"
)

DIZutils::close_connection(
  conn = db_con
)

## End(Not run)


DIZutils documentation built on Jan. 23, 2023, 5:42 p.m.