Orbit-db: DocumentStore

Created on 24 Jul 2016  路  8Comments  路  Source: orbitdb/orbit-db

Add a new datastore to orbit-db: Document Store.

Original discussion here: https://github.com/haadcode/orbit-db/issues/35

Easy

All 8 comments

I can work on this

Excellent! Let's go through today what needs to be done.

Consider this claimed by @shamb0t

API idea:

const store = orbitdb.documents('db name', { indexBy: 'title' })
store.put({ title: 'hello world', doc: 'all the things'})
store.get('hello world') // return the object ^

And we might want to extend that to have a simple search:

store.search({ doc: 'things'}) // return the document in the example above

This is purely optional for now.

@shamb0t Any progress on this? Do you still plan to work on this? If not, let me know and I'll move the task back to the Backlog (instead of "this will be worked on soon").

@haadcode just for exact title matches so far

Thank you @shamb0t for implementing this, great work and a great new feature for orbit-db! o/

馃帀 馃挜

Was this page helpful?
0 / 5 - 0 ratings

Related issues

varcario picture varcario  路  5Comments

maroodb picture maroodb  路  3Comments

BartKnucle picture BartKnucle  路  4Comments

crazyrabbitLTC picture crazyrabbitLTC  路  6Comments

adamski picture adamski  路  5Comments