Closed utanapishtim closed 6 years ago
Hey @utanapishtim. There's not a clear API really yet for getting a node by a specific version. You can do it right now by using hyperdb#version
to get a time snapshot after you write a node, and then use hyperdb#checkout
to get that old db state and do a hyperdb#get
on that key.
Ok, thanks!
Is there a way to read an earlier version of a key without checking out an earlier version of the database? If you can point me to the relevant sections of the code I can try to read a bit more.
I spent most of last night in
lib/get
and theWriter
prototype inindex.js
, couldn't figure it out...Thanks!