R/dbClearResult_MariaDBResult.R

Defines functions dbClearResult_MariaDBResult

Documented in dbClearResult_MariaDBResult

#' @rdname query
#' @usage NULL
dbClearResult_MariaDBResult <- function(res, ...) {
  if (!dbIsValid(res)) {
    warningc("Expired, result set already closed")
    return(invisible(TRUE))
  }
  result_release(res@ptr)
  invisible(TRUE)
}

#' @rdname query
#' @export
setMethod("dbClearResult", "MariaDBResult", dbClearResult_MariaDBResult)
r-dbi/RMariaDB documentation built on Dec. 15, 2024, 12:12 p.m.