duckplyr_execute: Execute a statement for the default connection

View source: R/duckplyr_execute.R

duckplyr_executeR Documentation

Execute a statement for the default connection

Description

The duckplyr package relies on a DBI connection to an in-memory database. The duckplyr_execute() function allows running SQL statements with this connection to, e.g., set up credentials or attach other databases.

Usage

duckplyr_execute(sql)

Arguments

sql

The statement to run.

Value

The return value of the DBI::dbExecute() call, invisibly.

Examples

duckplyr_execute("SET threads TO 2")

duckdblabs/duckplyr documentation built on Nov. 6, 2024, 10 p.m.