ssbc / jitdb

A database on top of a log with automatic index generation and maintenance
50 stars 7 forks source link

More docs on equal #22

Closed mixmix closed 3 years ago

mixmix commented 3 years ago

The docs on slowEqual and equal are clear but currently provide happy paths which seem to use convenience helpers provided by db - seekType, seekAuthor

I would love to know how to write a seek for a profile tangle matching an Id.

The docs talk about manipulating a buffer. I should probably dig in to find where seekAuthor is defined.

My wishlist would behave like

seekTangle(tangleName, id)

// inside it would do
msg.key === id ||
msg.value.content.tangles[tangleName].root === id

If anyone would like to pair on this I'd love to.

This issue and this request are not at all urgent, please feel free to address way later

staltz commented 3 years ago

Hopefully this is done now? More docs on how to do the tangles thing you mentioned could be written later, or maybe in ssb-db2

mixmix commented 3 years ago

Yeah loved what you showed. I can figure out the tangle thing myself from what I've learnt i reckon!

On Sat, 14 Nov 2020, 11:26 André Staltz, notifications@github.com wrote:

Closed #22 https://github.com/ssb-ngi-pointer/jitdb/issues/22.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/ssb-ngi-pointer/jitdb/issues/22#event-3995603915, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAUK3HTDPQ5BJVV53LJQFATSPWXDFANCNFSM4TT5PMZA .