Well done.  I am curious, though, if you tried implementing this as a sqlite VFS.   That would allow it to be more plug-n-play with existing software that already talks to sqlite.<p>I suppose you would have had to hack up something to map offset ranges into key&#x2F;value pairs, but at a high level, it seems feasible.