Bflddbdel — drop LMDB database.
#include <ubf.h>
int Bflddbdel(EDB_txn *txn, BFLDID bfldid);
Link with -lubf -lnstd -lm -lpthread
This function is used to delete existing field from UBF field database. The field id is passed in the bfldid variable. This is compiled field id which includes data type too. Field is added as part of the LMDB transaction, which is passed in the txn variable. The transaction is open by edb_txn_begin() and finished by edb_txn_commit() or edb_txn_abort().
On success, Bflddbdel() return zero; on error, -1 is returned, with Berror set to indicate the error.
In case of error Berror will be non 0. Note that Bstrerror() returns generic error message plus custom message with debug info from last function call.
BEINVAL txn transaction object is NULL. Field id in bfldid ⇐0.
BNOTPRES field not present not in FD files or in database.
BNOSPACE LMDB error - no space, see logs.
BEUNIX LMDB error, see logs.