Function mongocrypt_sys::mongocrypt_ctx_mongo_db

source ยท
pub unsafe extern "C" fn mongocrypt_ctx_mongo_db(
    ctx: *mut mongocrypt_ctx_t,
) -> *const c_char
Expand description

Get the database to run the mongo operation.

Only applies when mongocrypt_ctx_t is in the state: MONGOCRYPT_CTX_NEED_MONGO_COLLINFO_WITH_DB.

The lifetime of the returned string is tied to the lifetime of @p ctx. It is valid until @ref mongocrypt_ctx_destroy is called.

@param[in] ctx The @ref mongocrypt_ctx_t object. @returns A string or NULL. If NULL, an error status is set. Retrieve it with @ref mongocrypt_ctx_status