A.28 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_detach/0
          • db_sync/1
          • db_sync_all/1
    • Packages
Availability::- use_module(library(persistency)).(can be autoloaded)
Sourcedb_attach(:File, +Options)
Use File as persistent database for the calling module. The calling module must defined persistent/1 to declare the database terms. Defined options:
sync(+Sync)
One of close (close journal after write), flush (default, flush journal after write) or none (handle as fully buffered stream).

If File is already attached this operation may change the sync behaviour.