quackdb_internal::ffi

Function duckdb_close

Source
pub unsafe extern "C" fn duckdb_close(
    database: *mut *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. 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.