lmdb_sys

Function mdb_drop

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

@brief Empty or delete+close a database.

See #mdb_dbi_close() for restrictions about closing the DB handle. @param[in] txn A transaction handle returned by #mdb_txn_begin() @param[in] dbi A database handle returned by #mdb_dbi_open() @param[in] del 0 to empty the DB, 1 to delete it from the environment and close the DB handle. @return A non-zero error value on failure and 0 on success.