Function ejdb_patch_jbl

Source
pub unsafe extern "C" fn ejdb_patch_jbl(
    db: EJDB,
    coll: *const c_char,
    patch: JBL,
    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 patch 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.