0001 BFLDDBID(3)
0002 ===========
0003 :doctype: manpage
0004
0005
0006 NAME
0007 ----
0008 Bflddbid - Get UBF field id from field name
0009
0010
0011 SYNOPSIS
0012 --------
0013
0014 #include <ubf.h>
0015
0016 BFLDID Bflddbid (char *'fldname');
0017
0018 Link with '-lubf -lnstd -lm -lpthread'
0019
0020 DESCRIPTION
0021 -----------
0022 Resolve field id from name directly from custom UBF field database. If field tables
0023 is not loaded, then this function will initiate table loading. The field name
0024 is passed in 'fldname' parameter.
0025
0026 Function is thread safe.
0027
0028 RETURN VALUE
0029 ------------
0030 On success, *Bflddbid()* returns compiled file id; on error,
0031 *BBADFLDID* is returned.
0032
0033 ERRORS
0034 ------
0035 Note that *Bstrerror()* returns generic error message plus custom message with
0036 debug info from last function call.
0037
0038 *BEINVAL* 'fldname' is NULL or empty. Corrupted data stored in LMDB.
0039
0040 *BEUNIX* LMDB Error.
0041
0042 *BBADNAME* name not found or no database defined.
0043
0044 *BMALLOC* failed to allocate database structures.
0045
0046 *BNOSPACE* lmdb max readers reached or other limit, see logs for details.
0047
0048 EXAMPLE
0049 -------
0050 See *atmitest/test050_ubfdb/atmiclt50.c* for sample code.
0051
0052 BUGS
0053 ----
0054 Report bugs to support@mavimax.com
0055
0056 SEE ALSO
0057 --------
0058 *Bflddbname(3)* *Bflddbget(3)* *Bflddbload(3)* *Bflddbunload(3)*
0059 *Bflddbdrop(3)* *Bflddbdel(3)* *Bflddbadd(3)* *Bflddbunlink(3)* *ubfdb.ini(5)*
0060
0061 COPYING
0062 -------
0063 (C) Mavimax, Ltd
0064
0065