pub unsafe extern "C" fn ejdb_patch(
    db: EJDB,
    coll: *const c_char,
    patchjson: *const c_char,
    id: i64
) -> iwrc
Expand description

@brief Apply rfc6902/rfc7396 JSON patch to the document identified by id.

@param db Database handle. Not zero. @param coll Collection name. Not zero. @param patchjson JSON patch conformed to rfc6902 or rfc7396 specification. @param id Document id. Not zero.

@return 0 on success. IWKV_ERROR_NOTFOUND if document not found. Any non zero error codes.