Properly closes a DuckDB connection and shuts down the database.
Usage
close_duckdb(con, checkpoint = NULL)
Arguments
- con
DuckDB connection
- checkpoint
Run checkpoint before closing (default: TRUE for writeable connections)
Examples
if (FALSE) { # \dontrun{
close_duckdb(con)
} # }