lmdb_sys

Function mdb_stat

Source
pub unsafe extern "C" fn mdb_stat(
    txn: *mut MDB_txn,
    dbi: MDB_dbi,
    stat: *mut MDB_stat,
) -> c_int
Expand description

@brief Retrieve statistics for a database.

@param[in] txn A transaction handle returned by #mdb_txn_begin() @param[in] dbi A database handle returned by #mdb_dbi_open() @param[out] stat The address of an #MDB_stat structure where the statistics will be copied @return A non-zero error value on failure and 0 on success. Some possible errors are:

  • EINVAL - an invalid parameter was specified.