Skip to main content

laminar_close

Function laminar_close 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn laminar_close( conn: *mut LaminarConnection, ) -> i32
Expand description

Close a database connection.

This frees the connection and all associated resources. The connection handle becomes invalid after this call.

§Arguments

  • conn - Connection handle to close

§Returns

LAMINAR_OK on success, or an error code.

§Safety

conn must be a valid handle from laminar_open() that has not been closed.