User Tools

Site Tools


Sidebar

Table Of Contents

endurox:v7.5.x:api:ubf:bflddbdel.3

bflddbdel

Name

Bflddbdel — drop LMDB database.

Synopsis

#include <ubf.h>

int Bflddbdel(EDB_txn *txn, BFLDID bfldid);

Link with -lubf -lnstd -lm -lpthread

DESCRIPTION

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().

RETURN VALUE

On success, Bflddbdel() return zero; on error, -1 is returned, with Berror set to indicate the error.

ERRORS

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.

EXAMPLE

See atmitest/test050_ubfdb/atmiclt50.c for sample code.

BUGS

Report bugs to support@mavimax.com

COPYING

© Mavimax, Ltd