-
Notifications
You must be signed in to change notification settings - Fork 59
6. Database support
Priyal Jain edited this page Apr 11, 2016
·
2 revisions
Jsnapy supports SQL database by using python's sqlite library.
User can store and compare snapshots from database by specifying sqlite option in config file.
sqlite:
- store_in_sqlite: True ## if want to store in sqlite, (optional in case of --check or check())
database_name: jbb.db ## database name
check_from_sqlite: True ## if want to chk from database
compare: 1,0 ## file no to be compared, can be any two no between 0-50, required only
when user wants to compare from database (optional if you are specifying snap name)
In compare option user can specify snap ids. If user wants to compare using snap names then he/she has to specify it like:
Command line tool:
jsnap --check pre post -f config.yml
In module:
js.check(config_file_name, snap1, snap2)
If snap id is given, then preference is given to id over name. For using id, user has to specify it inside config file and use that file like:
Command line tool:
jsnap --check -f config.yml
In module:
js.check(config_file_name)