title: How to utilize sqlite for undo/redo features?
body: <p>I'm writing a desktop application to do vector drawing in C++, and considering using sqlite to back my undo/redo feature. </p>
  
  <p>Has anybody used sqlite for undo/redo features? How does it work out for you?</p>
  
  <p>Clarification:</p>
  
  <p>I was aware of the stack approach, I have even implemented one application with that approach. The problem I encountered was that it becomes hard to maintain after a while.</p>
  
  <p>What I meant by utilizing sqlite is that I will map my entire in-memory data structure into a sqlite database, and let the sqlite do the diff and revision for me.
  Speed should not be a issue if I create a in-memory database.</p>
  
  <p>That was the idea and I was wondering if that could work.</p>