ddbh3_default_conn: Get or create default DuckDB connection

View source: R/h3_extension.R

ddbh3_default_connR Documentation

Get or create default DuckDB connection

Description

Setup the default connection with h3 and spatial extensions installed and loaded. It will be used internally by the package functions if no other connection is provided

Usage

ddbh3_default_conn(create = TRUE, upgrade_h3 = FALSE, ...)

Arguments

create

Logical. If TRUE and no connection exists, create one. Default is TRUE.

upgrade_h3

Logical. If TRUE, will attempt to upgrade the h3 extension

...

Additional parameters to pass to duckspatial::ddbs_create_conn()

Value

Invisibly, the default duckdb_connection

Examples

# Get or create default connection

duckh3 documentation built on April 25, 2026, 1:07 a.m.