0001 BFLDDBDROP(3)
0002 =============
0003 :doctype: manpage
0004
0005
0006 NAME
0007 ----
0008 Bflddbdrop - drop LMDB database.
0009
0010 SYNOPSIS
0011 --------
0012
0013 #include <ubf.h>
0014
0015 int Bflddbdrop(EDB_txn *'txn');
0016
0017 Link with '-lubf -lnstd -lm -lpthread'
0018
0019 DESCRIPTION
0020 -----------
0021 Drop the LMDB UFB custom field databases. Note that if parameters in configuration
0022 are changed (like map size or max readers), after this call these parameters
0023 are not re-applied. The drop is done as part of the LMDB transaction, passed in
0024 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, *Bflddbunlink()* 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* database is not loaded.
0038
0039 *BNOSPACE* LMDB error - no space, see logs.
0040
0041 *BEUNIX* LMDB error, see logs.
0042
0043 EXAMPLE
0044 -------
0045 See *atmitest/test050_ubfdb/atmiclt50.c* for sample code.
0046
0047 BUGS
0048 ----
0049 Report bugs to support@mavimax.com
0050
0051 SEE ALSO
0052 --------
0053 *Bflddbid(3)* *Bflddbname(3)* *Bflddbload(3)* *Bflddbunload(3)*
0054 *Bflddbunlink(3)* *Bflddbdel(3)* *Bflddbadd(3)* *Bflddbget(3)*
0055
0056 COPYING
0057 -------
0058 (C) Mavimax, Ltd
0059