pub unsafe extern "C" fn mdb_drop(
txn: *mut MDB_txn,
dbi: MDB_dbi,
del: c_int,
) -> c_int
Expand description
Empty or delete+close a database.
See #mdb_dbi_close() for restrictions about closing the DB handle.
§Arguments
txn
(direction in) - A transaction handle returned by #mdb_txn_begin()dbi
(direction in) - A database handle returned by #mdb_dbi_open()del
(direction in) - 0 to empty the DB, 1 to delete it from the environment and close the DB handle.
§Returns
A non-zero error value on failure and 0 on success.