Nothing
#' @rdname hidden_aliases
#' @usage NULL
dbFetchArrow_DBIResultArrow <- function(res, ...) {
chunk <- dbFetchArrowChunk_DBIResultArrow(res)
# Corner case: add empty chunk only for zero rows, for schema
if (chunk$length == 0) {
return(nanoarrow::basic_array_stream(
list(),
schema = nanoarrow::infer_nanoarrow_schema(chunk),
validate = FALSE
))
}
out <- list(chunk)
repeat {
chunk <- dbFetchArrowChunk_DBIResultArrow(res)
if (chunk$length == 0) {
return(nanoarrow::basic_array_stream(
out,
schema = nanoarrow::infer_nanoarrow_schema(out[[1]]),
validate = FALSE
))
}
out <- c(out, list(chunk))
}
}
#' @rdname hidden_aliases
#' @export
setMethod("dbFetchArrow", signature("DBIResultArrow"), dbFetchArrow_DBIResultArrow)
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.