Learn R Programming

duckdbfs (version 0.1.0)

close_connection: close connection

Description

close connection

Usage

close_connection(conn = cached_connection())

Value

returns nothing.

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.

Examples

Run this code

close_connection()

Run the code above in your browser using DataLab