Function libduckdb_sys::duckdb_close

source ·
pub unsafe extern "C" fn duckdb_close(database: *mut duckdb_database)
Expand description

Closes the specified database and de-allocates all memory allocated for that database. This should be called after you are done with any database allocated through duckdb_open or duckdb_open_ext. Note that failing to call duckdb_close (in case of e.g. a program crash) will not cause data corruption. Still, it is recommended to always correctly close a database object after you are done with it.

database: The database object to shut down.