database.pl -- Storage of predicates in mongolog programs.

The following predicates are supported:

PredicateArguments
assert/1+Head
retractall/1+Head
author
- Daniel Beßler
See also
- https://www.swi-prolog.org/pldoc/man?section=dynpreds
license
- BSD
 mongolog_add_predicate(+Functor, +Fields, +Options) is semidet
Register a predicate that stores facts in the database. Functor is the functor of a n-ary predicate, and Fields is a n-elemental list of keys associated to the different arguments of the predicate. Options is a list of optional paramers:
indices(List)a list of indices passed to setup_collection/2
collection(Collection)name of the collection where predicate is stored, default is to use the functor of the predicate

Current limitation: there cannot be predicates with the same functor, but different arity.

Arguments:
Functor- functor of the predicate
Fields- field names of predicate arguments
Options- option list
 mongolog_drop_predicate(+Functor) is det
Delete all facts associated to predicate with given functor.
Arguments:
Functor- functor of the predicate