Function tarantool_rust_module::box_index_count [] [src]

pub unsafe extern "C" fn box_index_count(
    space_id: u32,
    index_id: u32,
    type_: c_int,
    key: *const c_char,
    key_end: *const c_char
) -> isize

Count the number of tuple matched the provided key.

\param space_id space identifier \param index_id index identifier \param type iterator type - enum \link iterator_type \endlink \param key encoded key in MsgPack Array format ([part1, part2, ...]). \param key_end the end of encoded \a key. \retval -1 on error (check box_error_last()) \retval >=0 on success \sa \code box.space[space_id].index[index_id]:count(key, { iterator = type }) \endcode