get_sql_query_func: Get a SQL query

View source: R/bm-tpc-h.R

get_sql_query_funcR Documentation

Get a SQL query

Description

Produces a function that can be queried against any DBI backend (e.g. DuckDB)

Usage

get_sql_query_func(query_num)

Arguments

query_num

the query number to fetch the result for

Details

The function that is returned takes the following arguments. The first two are suppleid to match the signature of those in tpc_h_queries

  • input_func set to default NULL, will have no effect if supplied

  • collect_func set to default NULL, will have no effect if supplied

  • con a (DBI) connection to query against

Value

a function that accepts an argument con which will run DBI::dbGetQuery() against.


ursa-labs/arrowbench documentation built on July 8, 2023, 11:36 a.m.