Skip to contents

Properly disconnects from the DuckDB database.

Usage

disconnect_bouncer(conn, shutdown = TRUE)

Arguments

conn

A DuckDB connection object

shutdown

Logical. If TRUE, shuts down the DuckDB instance. Default is TRUE.

Value

Invisibly returns TRUE

Examples

if (FALSE) { # \dontrun{
conn <- connect_to_bouncer()
# ... do work ...
disconnect_bouncer(conn)
} # }