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 April 3, 2025, 11:16 p.m.