logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

rulexdb_load_ruleset - load specified ruleset from a rulex database

Author

       Igor B. Poretsky <poretsky@mlbox.ru>.

                                                  June 21, 2023                          RULEXDB_LOAD_RULESET(3)

Description

       The  rulexdb_load_ruleset()  function  preloads  all data for the ruleset specified by rule_type argument
       that may accept one of the following values:

       RULEXDB_LEXCLASS
              Load the Classifiers ruleset.

       RULEXDB_PREFIX
              Load the Prefixdetectors ruleset.

       RULEXDB_RULE
              Load the General ruleset.

       RULEXDB_CORRECTOR
              Load the Correctors ruleset.

       The argument rulexdb references the database to deal with.

       Loaded ruleset cannot be modified.

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 cannot be initialized for loading.

Name

       rulexdb_load_ruleset - load specified ruleset from a rulex database

Return Value

       The rulexdb_load_ruleset() function returns number of loaded records or negative error code.

See Also

rulexdb_classify(3),     rulexdb_close(3),     rulexdb_dataset_name(3),    rulexdb_discard_dictionary(3),
       rulexdb_discard_ruleset(3),       rulexdb_fetch_rule(3),       rulexdb_lexbase(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)

Synopsis

#include<rulexdb.h>intrulexdb_load_ruleset(RULEXDB*rulexdb,intrule_type);

See Also