dbDisconnectEM: Disconnect from and econModel database

Description Usage Arguments Value Examples

View source: R/AmerAssocIndividInvestorsAAII.R

Description

Disconnects.

Usage

1
dbDisconnectEM(connName, env)

Arguments

connName

String. Name of the database connection object. Optional. This may be "passed" instead of "conn".

env

Environment. Default is the global environment .GlobalEnv. Location of the connection object "connName".

Value

Disconnects "connName" from the database and removes it from the environment "env".

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 

# Instead use: dbLogoutEM()

dbDisconnectEM() # default is connection variable "connEM" in the .GlobalEnv
# Tried to disconnect the R object "connEM" and remove it
# from the environment <environment: R_GlobalEnv>.


## End(Not run)

AndreMikulec/econModel documentation built on June 30, 2021, 9:48 a.m.