Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Persistent Storage feature #145

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Persistent Storage feature #145

wants to merge 3 commits into from

Conversation

cyril36
Copy link

@cyril36 cyril36 commented Nov 21, 2022

Description

I have created new parameters to be able to store the data in a json file instead of being only in memory data
With this new parameters we can :

  • save the in memory data in the json file given in input
  • create a copy of this json file at every action, this way we keep an history of the mutation and if we want to revert a change and come back to a previous version, we can replace the input file with the backup
  • provide a directory where those copies will be saved
  • add some logs

The parameters to use are:

  • --persistent : enable the persistent feature that will save the in memory data in the json file
  • --keep-change-history : enable a feature that will create a copy of the json file everytime there is an action
  • --persistent-dir (string) : path where the data copy will be saved
  • --verbose : to have some logs

Related Issue

I had the same need as the user in this ticket

#96

I dont know if you will want to include it to your repo, but it might help other people :D

Best regards,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant