conn_driver: Create a DuckDB driver

View source: R/connection.R

conn_driverR Documentation

Create a DuckDB driver

Description

Thin wrapper around duckdb::duckdb() with quak-friendly defaults.

Usage

conn_driver(
  dbdir = ":memory:",
  read_only = FALSE,
  bigint = "numeric",
  config = list(),
  ...,
  unsigned = FALSE,
  environment_scan = FALSE
)

Arguments

dbdir

Character scalar. Database path. Defaults to ":memory:".

read_only

Logical. Open in read-only mode. Defaults to FALSE.

bigint

Character scalar. How to represent 64-bit integers. Defaults to "numeric".

config

Named list of DuckDB configuration options. Defaults to list().

...

Additional arguments passed to duckdb::duckdb().

unsigned

Logical. Allow loading unsigned (locally-built or community) extensions — equivalent to duckdb -unsigned on the CLI. Sets allow_unsigned_extensions = "true" in config. Defaults to FALSE.

environment_scan

Logical. Scan the R environment for secrets. Defaults to FALSE.

Value

A duckdb_driver object.


quak documentation built on June 9, 2026, 5:09 p.m.