A.33 library(persistency): Provide persistent dynamic predicates
AllApplicationManualNameSummaryHelp

  • Documentation
    • Reference manual
      • The SWI-Prolog library
        • library(persistency): Provide persistent dynamic predicates
          • persistent/1
          • current_persistent_predicate/1
          • db_attach/2
          • db_attached/1
          • db_assert/1
          • db_detach/0
          • db_retractall/1
          • db_retract/1
          • db_sync/1
          • db_sync_all/1
    • Packages
Availability::- use_module(library(persistency)).(can be autoloaded)
Sourcepersistent +Spec
Declare dynamic database terms. Declarations appear in a directive and have the following format:
:- persistent
        <callable>,
        <callable>,
        ...

Each specification is a callable term, following the conventions of library(record), where each argument is of the form

name:type

Types are defined by library(error).