tagdb
v0.0.1
Published
Simple data storage interface to the user's available flextag space
Downloads
3
Readme
tagdb
Simple data storage interface to the user's available flextag space
See flextag.org and my 2016 attempt at this, called socdb.
Internals
a DB has .tags which is a KeyedSet of flextag strings. It's a KeyedSet for watching it. Actually, it's { tag, source } objects, so we have multple entries if the tag comes from multiple sources. NAH - just use the tree, watching & emitting when the tree source change.
each Query watches db.tags for add/delete/clear. we can mapper.parse it for the bindings, if any, but then what if its delete? How do we know if this was the only one? We COULD reference count. Map BINDINGSJSON => list-of-sources.
add/clear are easy. delete is not, because did we have the same binding from