Comment

Comment by rogerbinns

I originally started out doing exactly what you said - dumping Python dictionaries into a file and reading/writing that. It worked well. Where it really hurt was I wanted to add undo functionality, and that means needing to store the before and after view of the data. And I wanted it more sophisticated than that - be able to view what the data looked like at any point in time.

That forced me to use a database, because now I could use triggers to automatically save off old values, and views to use them nicely.

There were many Python SQLite wrappers at the time, but I didn't like them. So I wrote another one :)

https://www.rogerbinns.com/blog/20-years-of-apsw.html

(I am the APSW maintainer)

parent rogerbinns 20 days ago

No comments yet

Be the first to share your thoughts.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton