rulexdb_discard_dictionary3
Remove specified dictionary dataset from a rulex database
Usage
#include <rulexdb.h> int rulexdb_discard_dictionary(RULEXDB *rulexdb, int item_type);
Overview
The rulexdb_discard_dictionary() function removes all data from dictionary dataset specified by item_type argument that may accept one of the following values:
|
Discard the |
|---|---|
|
Discard the |
Note that the data type must be specified explicitly. The value RULEXDB_DEFAULT is not allowed here.
The argument rulexdb references the database to deal with.
Return value
The rulexdb_discard_dictionary() function returns number of deleted records or negative error code.
Errors
RULEXDB_FAILURE-
Referenced database has not been opened, internal data structures are corrupted or some other general failure has occurred.
RULEXDB_EPARM-
Invalid arguments are specified.
RULEXDB_EACCESS-
The database is not opened for updating.