User Tools

Site Tools


Sidebar

Table Of Contents

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

bflddbid

Name

Bflddbid — Get UBF field id from field name

Synopsis

#include <ubf.h>

BFLDID Bflddbid (char *fldname);

Link with -lubf -lnstd -lm -lpthread

DESCRIPTION

Resolve field id from name directly from custom UBF field database. If field tables is not loaded, then this function will initiate table loading. The field name is passed in fldname parameter.

Function is thread safe.

RETURN VALUE

On success, Bflddbid() returns compiled file id; on error, BBADFLDID is returned.

ERRORS

Note that Bstrerror() returns generic error message plus custom message with debug info from last function call.

BEINVAL fldname is NULL or empty. Corrupted data stored in LMDB.

BEUNIX LMDB Error.

BBADNAME name not found or no database defined.

BMALLOC failed to allocate database structures.

BNOSPACE lmdb max readers reached or other limit, see logs for details.

EXAMPLE

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

BUGS

Report bugs to support@mavimax.com

COPYING

© Mavimax, Ltd