R/dbClearResult_SQLiteResult.R

Defines functions dbClearResult_SQLiteResult

Documented in dbClearResult_SQLiteResult

#' @rdname SQLiteResult-class
#' @usage NULL
dbClearResult_SQLiteResult <- function(res, ...) {
  if (!dbIsValid(res)) {
    warningc("Expired, result set already closed")
    return(invisible(TRUE))
  }
  result_release(res@ptr)
  res@conn@ref$result <- NULL
  invisible(TRUE)
}
#' @rdname SQLiteResult-class
#' @export
setMethod("dbClearResult", "SQLiteResult", dbClearResult_SQLiteResult)

Try the RSQLite package in your browser

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

RSQLite documentation built on May 29, 2024, 3:30 a.m.