Detaches the DuckLake database but keeps the DuckDB connection alive by
default. Use shutdown = TRUE to also close the connection and release
file locks.
Arguments
- ducklake_name
Optional name of the ducklake to detach.
- shutdown
If
TRUE, shut down the DuckDB connection after detaching. Only applies to the connection ducklake created itself; a connection registered withset_ducklake_connection()is never closed for you.
See also
Other connection management:
attach_ducklake(),
get_ducklake_backend(),
get_ducklake_connection(),
install_ducklake(),
set_ducklake_connection()
Examples
if (FALSE) { # \dontrun{
attach_ducklake("my_ducklake", lake_path = "path/to/lake")
# ... do work ...
detach_ducklake("my_ducklake")
# Full shutdown when completely done
detach_ducklake("my_ducklake", shutdown = TRUE)
} # }
