az_conn: Open a DuckDB connection configured for Azure Data Lake...

View source: R/azure.R

az_connR Documentation

Open a DuckDB connection configured for Azure Data Lake Storage Gen2

Description

Opens a DuckDB connection and installs the azure and delta extensions. No secret is registered — use az_set_token_secret(), az_set_sp_secret(), or az_set_chain_secret() to supply credentials afterwards.

Usage

az_conn(conn = NULL)

Arguments

conn

An existing DuckDB connection to configure. When NULL (default) a new in-memory connection is opened via conn_open().

Value

A DuckDB connection. The caller owns its lifetime; disconnect with DBI::dbDisconnect(conn, shutdown = TRUE).

Examples

## Not run: 
# Requires a live Azure account, credentials, and network access.
conn <- az_conn() |>
  az_set_token_secret(token = my_token)
DBI::dbDisconnect(conn, shutdown = TRUE)

## End(Not run)

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