close_connection {DIZutils} | R 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)
[Package DIZutils version 0.1.2 Index]