0001 BFLDDBDEL(3)
0002 ============
0003 :doctype: manpage
0004
0005
0006 NAME
0007 ----
0008 Bflddbdel - drop LMDB database.
0009
0010 SYNOPSIS
0011 --------
0012
0013 #include <ubf.h>
0014
0015 int Bflddbdel(EDB_txn *'txn', BFLDID 'bfldid');
0016
0017 Link with '-lubf -lnstd -lm -lpthread'
0018
0019 DESCRIPTION
0020 -----------
0021 This function is used to delete existing field from UBF field database. The field
0022 id is passed in the 'bfldid' variable. This is compiled field id which includes
0023 data type too. Field is added as part of the LMDB transaction, which is passed
0024 in the 'txn' variable. The transaction is open by edb_txn_begin() and finished by
0025 edb_txn_commit() or edb_txn_abort().
0026
0027 RETURN VALUE
0028 ------------
0029 On success, *Bflddbdel()* return zero; on error, -1 is returned, with *Berror* set to
0030 indicate the error.
0031
0032 ERRORS
0033 ------
0034 In case of error *Berror* will be non *0*. Note that *Bstrerror()* returns
0035 generic error message plus custom message with debug info from last function call.
0036
0037 *BEINVAL* 'txn' transaction object is NULL. Field id in 'bfldid' <=0.
0038
0039 *BNOTPRES* field not present not in FD files or in database.
0040
0041 *BNOSPACE* LMDB error - no space, see logs.
0042
0043 *BEUNIX* LMDB error, see logs.
0044
0045 EXAMPLE
0046 -------
0047 See *atmitest/test050_ubfdb/atmiclt50.c* for sample code.
0048
0049 BUGS
0050 ----
0051 Report bugs to support@mavimax.com
0052
0053 SEE ALSO
0054 --------
0055 *Bflddbid(3)* *Bflddbname(3)* *Bflddbload(3)* *Bflddbunload(3)*
0056 *Bflddbunlink(3)* *Bflddbdrop(3)* *Bflddbadd(3)* *Bflddbget(3)* *ubfdb.ini(5)*
0057
0058 COPYING
0059 -------
0060 (C) Mavimax, Ltd
0061