Using the persdb library

Author(s): The CLIP Group.

Through the following examples we will try to illustrate the two mains ways of declaring and using persistent predicates: statically (the preferred method) and dynamically (necessary when the new persistent predicates have to be defined at run-time). The final example is a small application implementing a simple persistent queue.

An example of persistent predicates (static version)

 

An example of persistent predicates (dynamic version)

 

A simple application / a persistent queue