BFLDDBID(3)


Table of Contents

1. NAME
2. SYNOPSIS
3. DESCRIPTION
4. RETURN VALUE
5. ERRORS
6. EXAMPLE
7. BUGS
8. SEE ALSO
9. COPYING

1. NAME

Bflddbid - Get UBF field id from field name

2. SYNOPSIS

#include <ubf.h>

BFLDID Bflddbid (char *fldname);

Link with -lubf -lnstd -lm -lpthread

3. 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.

4. RETURN VALUE

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

5. 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.

6. EXAMPLE

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

7. BUGS

Report bugs to support@mavimax.com

8. SEE ALSO

Bflddbname(3) Bflddbget(3) Bflddbload(3) Bflddbunload(3) Bflddbdrop(3) Bflddbdel(3) Bflddbadd(3) Bflddbunlink(3) ubfdb.ini(5)

9. COPYING

© Mavimax, Ltd