I am writing a C ++ vector drawing application and am considering using sqlite to support my undo / redo function.
Has anyone used sqlite for undo / redo functions? How does it work for you?
Clarification:
I knew about the stack method, I even implemented one application with this approach. The problem I encountered was that after a while it becomes difficult to maintain.
What I meant when using sqlite is that I will bind my entire in-memory data structure to the sqlite database and let sqlite make the difference and revision for me. Speed โโshould not be a problem if I create a database in memory.
It was an idea, and I was wondering if this could work.
source share