DuckDB Result Set
Source:R/Result.R
, R/dbBind__duckdb_result.R
, R/dbClearResult__duckdb_result.R
, and 9 more
duckdb_result-class.Rd
Methods for accessing result sets for queries on DuckDB connections. Implements DBI::DBIResult.
Usage
duckdb_fetch_arrow(res, chunk_size = 1e+06)
duckdb_fetch_record_batch(res, chunk_size = 1e+06)
# S4 method for class 'duckdb_result'
dbBind(res, params, ...)
# S4 method for class 'duckdb_result'
dbClearResult(res, ...)
# S4 method for class 'duckdb_result'
dbColumnInfo(res, ...)
# S4 method for class 'duckdb_result'
dbFetch(res, n = -1, ...)
# S4 method for class 'duckdb_result'
dbGetInfo(dbObj, ...)
# S4 method for class 'duckdb_result'
dbGetRowCount(res, ...)
# S4 method for class 'duckdb_result'
dbGetRowsAffected(res, ...)
# S4 method for class 'duckdb_result'
dbGetStatement(res, ...)
# S4 method for class 'duckdb_result'
dbHasCompleted(res, ...)
# S4 method for class 'duckdb_result'
dbIsValid(dbObj, ...)
# S4 method for class 'duckdb_result'
show(object)
Arguments
- res
Query result to be converted to a Record Batch Reader
- chunk_size
The chunk size
- params
For
dbBind()
, a list of values, named or unnamed, or a data frame, with one element/column per query parameter. FordbBindArrow()
, values as a nanoarrow stream, with one column per query parameter.- ...
Other arguments passed on to methods.
- n
maximum number of records to retrieve per fetch. Use
n = -1
orn = Inf
to retrieve all pending records. Some implementations may recognize other special values.- dbObj
An object inheriting from class duckdb_result.
- object
Any R object