Skip to contents

Returns the R-side execution plan recorded for a DuckDB connection. If no plan has been recorded yet, this returns the reference plan arrow_r + serial.

Usage

rducks_current_execution_plan(con)

Arguments

con

A duckdb_connection.

Value

An object of class rducks_execution_plan.

Examples

# \donttest{
db <- duckdb::dbConnect(duckdb::duckdb(config = list(allow_unsigned_extensions = "true")))
rducks_enable(db)
rducks_current_execution_plan(db)
#> <rducks_execution_plan>
#>   plan_id:     arrow_r+serial
#>   engine_id:   arrow_r_serial
#>   marshalling: arrow_r
#>   concurrency: serial
#>   reference:   yes
#>   implemented: yes
#>   call shapes: scalar, vectorized
rducks_release(db)
DBI::dbDisconnect(db)
# }