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
}

Try the RClickhouse package in your browser

Any scripts or data that you put into this service are public.

RClickhouse documentation built on Aug. 21, 2023, 5:06 p.m.