Function lmdb_master_sys::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
Retrieve statistics for a database.
§Arguments
txn
(direction in) - A transaction handle returned by #mdb_txn_begin()dbi
(direction in) - A database handle returned by #mdb_dbi_open()stat
(direction out) - The address of an #MDB_stat structure where the statistics will be copied
§Returns
A non-zero error value on failure and 0 on success. Some possible errors are:
- EINVAL - an invalid parameter was specified.