Function lmdb_master_sys::mdb_cursor_count
source · pub unsafe extern "C" fn mdb_cursor_count(
cursor: *mut MDB_cursor,
countp: *mut mdb_size_t,
) -> c_int
Expand description
Return count of duplicates for current key.
This call is only valid on databases that support sorted duplicate data items #MDB_DUPSORT.
§Arguments
cursor
(direction in) - A cursor handle returned by #mdb_cursor_open()countp
(direction out) - Address where the count will be stored
§Returns
A non-zero error value on failure and 0 on success. Some possible errors are:
- EINVAL - cursor is not initialized, or an invalid parameter was specified.