User Tools

Site Tools


Sidebar

Table Of Contents

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

bflddbunlink

Name

Bflddbunlink — unlink field database files.

Synopsis

#include <ubf.h>

int Bflddbunlink(void);

Link with -lubf -lnstd -lm -lpthread

DESCRIPTION

Unlink the database files. This function is useful in cases if configuration parameters are changed for database. The simple db drop will not cause new parameters to become in use. Thus when db is closed, it can be unlinked with this function. Next access to DB will create new database with new parameters.

Note this function does not close database handlers. Thus to work properly the DB shall not be open. Or it should be closed with Bflddbunload(3).

RETURN VALUE

On success, Bflddbunlink() return zero; on error, -1 is returned, with Berror set to indicate the error.

ERRORS

In case of error Berror will be non 0. Note that Bstrerror() returns generic error message plus custom message with debug info from last function call.

BEUNIX unlink of data files failed.

EXAMPLE

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

BUGS

Report bugs to support@mavimax.com

COPYING

© Mavimax, Ltd