R/dbFetch_DBIResultArrow.R

Defines functions dbFetch_DBIResultArrow

Documented in dbFetch_DBIResultArrow

#' @rdname hidden_aliases
#' @usage NULL
dbFetch_DBIResultArrow <- function(res, n = -1, ...) {

  if (is.infinite(n)) {
    n <- -1
  }

  if (n != -1) {
    stop("Cannot dbFetch() an Arrow result unless n = -1")
  }

  as.data.frame(
    dbFetchArrow(res, ...)
  )
}
#' @rdname hidden_aliases
#' @export
setMethod("dbFetch", signature("DBIResultArrow"), dbFetch_DBIResultArrow)

Try the DBI package in your browser

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

DBI documentation built on June 22, 2024, 9:41 a.m.