- 20 Mar, 2019 4 commits
-
-
Steven Allen authored
-
Steven Allen authored
-
Steven Allen authored
Fix function comments based on best practices from Effective Go
-
CodeLingoBot authored
Signed-off-by: CodeLingoBot <bot@codelingo.io>
-
- 16 Mar, 2019 1 commit
-
-
Steven Allen authored
remove ThreadSafeDatastore
-
- 15 Mar, 2019 1 commit
-
-
Steven Allen authored
It's a lie! We: 1. Assume that our datastores are thread-safe all over the place, not bothering to check for this interface. 2. Implement this interface for, e.g., the mount datastore that _may not_ be thread-safe (depending on the sub-datastores). Basically, there's no sane way to to do something like this in go. What we _want_ is: ```rust pub trait ThreadSafe {} struct MyWrapper<D: Datastore> { ... } impl<D: Datastore> ThreadSafe for MyWrapper<D> where D: ThreadSafe {} ``` Actually, we don't even need this because rust has already done all the hard work with the `Sync` trait. .... But we're using go which barely has types. --- For completeness, it's actually possible to do this in go: ```go type threadSafeMixin struct{} func (threadSafeMixin) ThreadSafe() {} func NewWrapper(d Datastore) Datastore { if _, ok := d.(ThreadSafe) { return &struct{myWrapper, threadSafeMixin}{myWrapper{d}, threadSafeMixin{}} } return &myWrapper{d} } ``` Let's not.
-
- 28 Feb, 2019 1 commit
-
-
Jakub Sztandera authored
-
- 07 Feb, 2019 1 commit
-
-
Raúl Kripalani authored
Splinter TTLDatastore interface into TTL + Datastore
-
- 06 Feb, 2019 4 commits
-
-
Raúl Kripalani authored
-
Raúl Kripalani authored
-
Raúl Kripalani authored
gx publish 3.6.0
-
Raúl Kripalani authored
-
- 31 Jan, 2019 2 commits
-
-
Steven Allen authored
interfaces: make GetBacked* take a Read instead of a Datastore
-
Steven Allen authored
fixes https://github.com/ipfs/go-ds-leveldb/issues/24
-
- 29 Jan, 2019 3 commits
-
-
Steven Allen authored
remove closer type assertions
-
Steven Allen authored
remove io.Closer from the transaction interface
-
Steven Allen authored
Transactions shouldn't have to implement Close.
-
- 28 Jan, 2019 3 commits
-
-
Steven Allen authored
We no longer need them.
-
Steven Allen authored
feat(datastore): expose datastore Close()
-
yaowenhao authored
-
- 24 Jan, 2019 3 commits
-
-
Steven Allen authored
query: make datastore ordering act like a user would expect
-
Steven Allen authored
-
Steven Allen authored
This applies orders hierarchically. Unfortunately, the interfaces had to be changed significantly to get this to work. For example `[OrderByValue{}, SortByKey{}]` *used* to re-sort by key, throwing away the value sort. Now, this acts like a normal database and `SortByKey` will only sort within equivalent values.
-
- 27 Dec, 2018 1 commit
-
-
Steven Allen authored
delayed: implement io.Closer and export datastore type.
-
- 26 Dec, 2018 2 commits
-
-
Steven Allen authored
-
Steven Allen authored
That way, we can return it directly.
-
- 11 Dec, 2018 2 commits
-
-
Steven Allen authored
split the datastore into a read and a write interface
-
Steven Allen authored
This way, we can abstract over transactions, datastores, and batches when we just need to write to the datastore.
-
- 09 Nov, 2018 3 commits
-
-
Hannah Howard authored
gx publish 3.4.1
-
hannahhoward authored
-
bigs authored
Describe behavior of Batching datastores
-
- 06 Nov, 2018 1 commit
-
-
Steven Allen authored
handle concurrent puts/deletes in BasicBatch
-
- 24 Oct, 2018 1 commit
-
-
Cole Brown authored
-
- 23 Oct, 2018 4 commits
-
-
Steven Allen authored
-
Steven Allen authored
(also, clear datastore between tests)
-
Steven Allen authored
-
Steven Allen authored
-
- 05 Oct, 2018 1 commit
-
-
Steven Allen authored
add a GetSize method
-
- 04 Oct, 2018 2 commits
-
-
Steven Allen authored
-
Steven Allen authored
-