table of contents
RULEXDB_DISCARD_RULESET(3) | Library Functions Manual | RULEXDB_DISCARD_RULESET(3) |
NAME¶
rulexdb_discard_ruleset - remove specified ruleset from a rulex database
SYNOPSIS¶
#include <rulexdb.h> int rulexdb_discard_ruleset(RULEXDB *rulexdb, int rule_type);
DESCRIPTION¶
The rulexdb_discard_ruleset() function removes all data from the ruleset specified by rule_type argument that may accept one of the following values:
- RULEXDB_LEXCLASS
- Discard the Classifiers ruleset.
- RULEXDB_PREFIX
- Discard the Prefix detectors ruleset.
- RULEXDB_RULE
- Discard the General ruleset.
- RULEXDB_CORRECTOR
- Discard the Correctors ruleset.
The argument rulexdb references the database to deal with.
RETURN VALUE¶
The rulexdb_discard_ruleset() 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.
SEE ALSO¶
rulexdb_classify(3), rulexdb_close(3), rulexdb_dataset_name(3), rulexdb_discard_dictionary(3), rulexdb_fetch_rule(3), rulexdb_lexbase(3), rulexdb_load_ruleset(3), rulexdb_open(3), rulexdb_remove_item(3), rulexdb_remove_rule(3), rulexdb_remove_this_item(3), rulexdb_retrieve_item(3), rulexdb_search(3), rulexdb_seq(3), rulexdb_subscribe_item(3), rulexdb_subscribe_rule(3)
AUTHOR¶
Igor B. Poretsky <poretsky@mlbox.ru>.
February 22, 2012 |