R/dbIsValid__duckdb_connection.R

Defines functions dbIsValid__duckdb_connection

Documented in dbIsValid__duckdb_connection

#' @rdname duckdb_connection-class
#' @inheritParams DBI::dbIsValid
#' @usage NULL
dbIsValid__duckdb_connection <- function(dbObj, ...) {
  # Use fast C++ connection validity check instead of executing SELECT 1
  # This avoids deadlock issues when called from progress bar handlers
  # that already have ScopedInterruptHandler protection
  rethrow_rapi_connection_valid(dbObj@conn_ref)
}

#' @rdname duckdb_connection-class
#' @export
setMethod("dbIsValid", "duckdb_connection", dbIsValid__duckdb_connection)

Try the duckdb package in your browser

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

duckdb documentation built on Nov. 5, 2025, 5:41 p.m.