Function tarantool_rust_module::box_update [] [src]

pub unsafe extern "C" fn box_update(
    space_id: u32,
    index_id: u32,
    key: *const c_char,
    key_end: *const c_char,
    ops: *const c_char,
    ops_end: *const c_char,
    index_base: c_int,
    result: *mut *mut BoxTuple
) -> c_int

Execute an UPDATE request.

\param space_id space identifier \param index_id index identifier \param key encoded key in MsgPack Array format ([part1, part2, ...]). \param key_end the end of encoded \a key. \param ops encoded operations in MsgPack Arrat format, e.g. [ [ '=', fieldno, value ], ['!', 2, 'xxx'] ] \param ops_end the end of encoded \a ops \param index_base 0 if fieldnos in update operations are zero-based indexed (like C) or 1 if for one-based indexed field ids (like Lua). \param[out] result a new tuple. Can be set to NULL to discard result. \retval -1 on error (check box_error_last()) \retval 0 on success \sa \code box.space[space_id].index[index_id]:update(key, ops) \endcode \sa box_upsert()