mirror of
https://github.com/orbitdb/orbitdb.git
synced 2025-06-07 14:46:37 +00:00
Add orbit-db-docstore
This commit is contained in:
parent
a61327c36b
commit
691348bd4c
@ -18,7 +18,8 @@
|
|||||||
"orbit-db-eventstore": "0.1.5",
|
"orbit-db-eventstore": "0.1.5",
|
||||||
"orbit-db-feedstore": "0.1.4",
|
"orbit-db-feedstore": "0.1.4",
|
||||||
"orbit-db-kvstore": "0.1.3",
|
"orbit-db-kvstore": "0.1.3",
|
||||||
"orbit-db-pubsub": "0.0.4"
|
"orbit-db-pubsub": "0.0.4",
|
||||||
|
"orbit-db-docstore": "0.0.7"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"asyncawait": "^1.0.6",
|
"asyncawait": "^1.0.6",
|
||||||
|
@ -5,6 +5,7 @@ const EventStore = require('orbit-db-eventstore')
|
|||||||
const FeedStore = require('orbit-db-feedstore')
|
const FeedStore = require('orbit-db-feedstore')
|
||||||
const KeyValueStore = require('orbit-db-kvstore')
|
const KeyValueStore = require('orbit-db-kvstore')
|
||||||
const CounterStore = require('orbit-db-counterstore')
|
const CounterStore = require('orbit-db-counterstore')
|
||||||
|
const DocumentStore = require('orbit-db-docstore')
|
||||||
const Pubsub = require('orbit-db-pubsub')
|
const Pubsub = require('orbit-db-pubsub')
|
||||||
const Cache = require('./Cache')
|
const Cache = require('./Cache')
|
||||||
|
|
||||||
@ -37,6 +38,10 @@ class OrbitDB {
|
|||||||
return this._createStore(CounterStore, dbname, options)
|
return this._createStore(CounterStore, dbname, options)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
docstore(dbname, options) {
|
||||||
|
return this._createStore(DocumentStore, dbname, options)
|
||||||
|
}
|
||||||
|
|
||||||
disconnect() {
|
disconnect() {
|
||||||
if (this._pubsub) this._pubsub.disconnect()
|
if (this._pubsub) this._pubsub.disconnect()
|
||||||
this.events.removeAllListeners('data')
|
this.events.removeAllListeners('data')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user