R/zzz.R

Defines functions .onUnload

.onUnload <- function(libpath) {
  # Reassign the original 'sql_prefix' function to the dbplyr namespace
  utils::assignInNamespace("sql_prefix", origSQLprefix,
                           ns = "dbplyr", envir = dbpenv)
  gc() # Force garbage collection of connections
}
IMSMWU/RClickhouse documentation built on April 3, 2025, 2:19 p.m.