disconnect: Disconnect from a database in the IDEA data warehouse

View source: R/connections.R

disconnectR Documentation

Disconnect from a database in the IDEA data warehouse

Description

Disconnect from a database in the IDEA data warehouse

Usage

disconnect(con)

Arguments

con

the name DBI::DBIConnection object as a string

Details

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

Value

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

Examples

# The following creates a connect call `conn_PROD1` in global environment
## Not run: 
regions <- get_regions()

disconnect(conn_PROD1)

## End(Not run)

idea-analytics/ideadata documentation built on Feb. 1, 2024, 5:40 a.m.