Function mentat_ffi::store_open [] [src]

#[no_mangle]
pub extern "C" fn store_open(uri: *const c_char) -> *mut Store

A store cannot be opened twice to the same location. Once created, the reference to the store is held by the caller and not Rust, therefore the caller is responsible for calling destroy to release the memory used by the Store in order to avoid a memory leak.

Safety

Callers are responsible for managing the memory for the return value. A destructor store_destroy is provided for releasing the memory for this pointer type.