#[unsafe(no_mangle)]pub unsafe extern "C" fn obj_open(
path: *const c_char,
out_db: *mut *mut obj_db_t,
) -> obj_error_tExpand description
Open or create a file-backed database at path. Default
configuration (obj_engine::Config::default).
On success: *out_db is set to a newly-allocated obj_db_t
(caller must free via obj_close) and OBJ_OK is returned.
On failure: *out_db is set to NULL and an error code is
returned.
ยงSafety
pathmust be a non-null pointer to a NUL-terminated UTF-8 string. The pointee is read but not retained.out_dbmust be a non-null pointer to a writableobj_db_t*. The pointee is unconditionally written before return (NULL on failure).