Changes between Version 1 and Version 2 of NifDB


Ignore:
Timestamp:
Apr 17, 2012, 9:12:18 AM (13 years ago)
Author:
manualwiki
Comment:

NifDB: added some more example code

Legend:

Unmodified
Added
Removed
Modified
  • NifDB

    v1 v2  
    4545ri:backup(). 
    4646 
     47% After that the output will be 
     48{ok, backup.1} 
     49% This backup will be created in the directory of the graph. 
     50 
    4751% Make a checkpoint with a commit log message. 
    48 ri:backup(CommitLogMsg). 
     52ri:backup("Something log message"). 
     53 
     54% It will print the following: 
     55{ok, backup.2} 
     56% That backup.2 will be created in the same directory as backup.1. 
     57 
     58% Now we want to know some informations about backup.2. 
     59% Note: Here you can specify either 'backup.2' or "backup.2" or just 2.  
     60ri:backup_info(2). 
     61Informations about 'backup.2': 
     62Commit-log: Something log message 
     63Time of creation: Tue Apr 17 11:03:29 2012 
    4964 
    5065% Lists all backups.