close_connection: close connection

View source: R/cached_connection.R

close_connectionR Documentation

close connection

Description

close connection

Usage

close_connection(conn = cached_connection())

Arguments

conn

a duckdb connection (leave blank) Closes the invisible cached connection to duckdb

Details

Shuts down connection before gc removes it. Then clear cached reference to avoid using a stale connection This avoids complaint about connection being garbage collected.

Value

returns nothing.

Examples


close_connection()


duckdbfs documentation built on April 11, 2025, 5:52 p.m.