adbc_driver_monkey: Monkey see, monkey do!

View source: R/driver_monkey.R

adbc_driver_monkeyR Documentation

Monkey see, monkey do!

Description

A driver whose query results are set in advance.

Usage

adbc_driver_monkey()

Value

An object of class 'adbc_driver_monkey'

Examples

db <- adbc_database_init(adbc_driver_monkey())
con <- adbc_connection_init(db)
stmt <- adbc_statement_init(con, mtcars)
stream <- nanoarrow::nanoarrow_allocate_array_stream()
adbc_statement_execute_query(stmt, stream)
as.data.frame(stream$get_next())


adbcdrivermanager documentation built on Sept. 11, 2024, 5:19 p.m.