|
|
|
|
|
by climech
1905 days ago
|
|
Just SQLite - two tables, one for the nodes, one for edges + some fancy constraints and queries. I was tempted to make a custom binary format, but that's a big task, and it seems to work fine as it is. As for the syncing, that would be really nice, but I haven't come up with an elegant way to do it yet. Suggestions welcome, if anyone has ideas! |
|
You can write git in a weekend or two: https://wyag.thb.lt/
sqlite is the wrong tool for the job, beyond an initial prototype. git and hg figured this stuff out decades ago.
Good job, by the way. This seems like the sort of thing which, if:
* it did store data in git and sync; and
* had a nice Python API
would change how I work.
The Python API, I could probably even handle myself. This is small data, and calls to shell commands are both more than adequate, and easy to script in Python.