You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 9, 2021. It is now read-only.
In an attempt to untangle generalized datastore interface discussion from query interface in #9, I'm forking former here.
I was trying to make an argument in favor of generalized DataStore interface that concrete data stores could be specialized implementations of. More concretely I was proposing following:
Implemented in #91 - interface-store became the generic key/value store type, interface-datastore implements Store<Key, Uint8Array>, interface-blockstore implements Store<CID, Uint8Array> - so far there's been no need for the Block type & I'm hoping we can live without it.
In an attempt to untangle generalized datastore interface discussion from
query
interface in #9, I'm forking former here.I was trying to make an argument in favor of generalized
DataStore
interface that concrete data stores could be specialized implementations of. More concretely I was proposing following:This would allow individual stores in the system to be concrete implementations of generic interface:
Note: That
Block
already encapsulates key and value so value and entry end up being same type.Note some alterations had being made to
query
API but they are not essential to this, just make more sense IMO.The text was updated successfully, but these errors were encountered: