mdb_drop function

int mdb_drop(
  1. Pointer<MDB_txn> txn,
  2. int dbi,
  3. int del
)

@brief Empty or delete+close a database.

See #mdb_dbi_close() for restrictions about closing the DB handle. @paramin txn A transaction handle returned by #mdb_txn_begin() @paramin dbi A database handle returned by #mdb_dbi_open() @paramin 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.

Implementation

@ffi.FfiNative<ffi.Int Function(ffi.Pointer<MDB_txn>, MDB_dbi, ffi.Int)>(
    'mdb_drop')
external int mdb_drop(
  ffi.Pointer<MDB_txn> txn,
  int dbi,
  int del,
);