• Places
    • Home
    • Graphs
    • Prefixes
  • Admin
    • Users
    • Settings
    • Plugins
    • Statistics
  • CPACK
    • Home
    • List packs
    • Submit pack
  • Repository
    • Load local file
    • Load from HTTP
    • Load from library
    • Remove triples
    • Clear repository
  • Query
    • YASGUI SPARQL Editor
    • Simple Form
    • SWISH Prolog shell
  • Help
    • Documentation
    • Tutorial
    • Roadmap
    • HTTP Services
  • Login

A.35 library(persistency): Provide persistent dynamic predicates
All Application Manual Name SummaryHelp

  • 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).

ClioPatria (version V3.1.1-51-ga0b30a5)