R/dbDisconnector.R

Defines functions dbDisconnector

Documented in dbDisconnector

#function to close all active connections to DB.
#DB driver is required
dbDisconnector <- function(driver)
{
  while(length(dbListConnections(driver)) > 0)
    dbDisconnect(dbListConnections(driver)[[1]])
  return(TRUE)
}
kislerdm/sqlEasy documentation built on June 6, 2017, 2:11 a.m.