Learn R Programming

duckplyr (version 1.0.1)

duckplyr_execute: Execute a statement for the default connection

Description

[Deprecated]

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. See https://duckdb.org/docs/configuration/overview.html for more information on the configuration options.

Usage

duckplyr_execute(sql)

Value

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

Arguments

sql

The statement to run.

Examples

Run this code
duckplyr_execute("SET threads TO 2")

Run the code above in your browser using DataLab