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

[Question] Reload database / cancel changes #929

Open
HanimHank opened this issue Apr 23, 2023 · 2 comments
Open

[Question] Reload database / cancel changes #929

HanimHank opened this issue Apr 23, 2023 · 2 comments

Comments

@HanimHank
Copy link

I'm using lokijs with auto save off, and saving the database using db.saveDatabase() after certain actions.

Suppose I make a few changes and want to discard them. I don't call saveDatabase(), but the data stays in-memory, for the duration of the work session, I believe.

Instead of manually undoing the changes, is there a way to revert the database to the previously saved state? Or clear the in-memory changes?

Thank you so much!

@deepam-kapur
Copy link

Can I work on this?

@jowmahin
Copy link

Can I work on this?

What's your idea for how this could work?

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

No branches or pull requests

3 participants