R/dbClearResult__duckdb_result.R

Defines functions dbClearResult__duckdb_result

Documented in dbClearResult__duckdb_result

#' @rdname duckdb_result-class
#' @inheritParams DBI::dbClearResult
#' @usage NULL
dbClearResult__duckdb_result <- function(res, ...) {
  if (res@env$open) {
    rethrow_rapi_release(res@stmt_lst$ref)
    res@env$open <- FALSE
  } else {
    warning("Result was cleared already")
  }
  return(invisible(TRUE))
}

#' @rdname duckdb_result-class
#' @export
setMethod("dbClearResult", "duckdb_result", dbClearResult__duckdb_result)

Try the duckdb package in your browser

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

duckdb documentation built on Oct. 30, 2024, 5:06 p.m.