[][src]Function lmdb_sys::mdb_cursor_get

pub unsafe extern "C" fn mdb_cursor_get(
    cursor: *mut MDB_cursor,
    key: *mut MDB_val,
    data: *mut MDB_val,
    op: MDB_cursor_op
) -> c_int

@brief Retrieve by cursor.

This function retrieves key/data pairs from the database. The address and length of the key are returned in the object to which \b key refers (except for the case of the #MDB_SET option, in which the \b key object is unchanged), and the address and length of the data are returned in the object to which \b data refers. See #mdb_get() for restrictions on using the output values. @param[in] cursor A cursor handle returned by #mdb_cursor_open() @param[in,out] key The key for a retrieved item @param[in,out] data The data of a retrieved item @param[in] op A cursor operation #MDB_cursor_op @return A non-zero error value on failure and 0 on success. Some possible errors are:

  • #MDB_NOTFOUND - no matching key found.
  • EINVAL - an invalid parameter was specified.