Disconnect from a database in the IDEA data warehouse

disconnect(con)

Arguments

con

the name DBI::DBIConnection object as a string

Value

nothing, as it's called for its side-effects

Details

This is a thing wrapper around DBI::dbDisconnect(), which closes the connection, discards all pending work, and frees resources (e.g., memory, sockets).

Examples

# The following creates a connect call `conn_PROD1` in global environment
if (FALSE) {
regions <- get_regions()

disconnect(conn_PROD1)
}