connection_close_all: Close all open database connections

View source: R/connection_helpers.R

connection_close_allR Documentation

Close all open database connections

Description

Safely closes all open database connections in the global environment. Useful for cleaning up after interactive sessions or when resetting state.

Usage

connection_close_all(force = FALSE, quiet = FALSE)

Arguments

force

Logical. If TRUE, closes even invalid connections. Default: FALSE

quiet

Logical. If TRUE, suppresses messages. Default: FALSE

Value

Invisibly returns the number of connections closed


framework documentation built on Feb. 18, 2026, 1:07 a.m.