- 18 Apr, 2019 2 commits
-
-
Steven Allen authored
Motivation: I want to be able to use the concrete type from a different package but I can't. This: 1. Exports the concrete datastore type and avoids returning private types from public functions. 2. Removes the mostly useless ktds interface. Unfortunately, it collides with the idiomatic name for the datastore itself. This could break something referencing the `ktds.Datastore` type but nothing is doing that.
-
Steven Allen authored
sync: apply entire query while locked
-
- 17 Apr, 2019 3 commits
-
-
Steven Allen authored
filter: values are now always bytes
-
Steven Allen authored
-
Steven Allen authored
-
- 13 Apr, 2019 4 commits
-
-
Steven Allen authored
autobatch: batch deletes
-
Steven Allen authored
-
Steven Allen authored
-
Steven Allen authored
part of fixing: https://github.com/libp2p/go-libp2p-kad-dht/issues/316#issuecomment-482753415
-
- 09 Apr, 2019 4 commits
-
-
Steven Allen authored
cleanup and optimize naive query filters
-
Steven Allen authored
-
Steven Allen authored
-
Steven Allen authored
It's impossible to cancel this correctly. This patch also tries to avoid goroutines whenever possible.
-
- 06 Apr, 2019 1 commit
-
-
Steven Allen authored
-
- 23 Mar, 2019 1 commit
-
-
Steven Allen authored
Fix – sorted limited offset mount queries
-
- 22 Mar, 2019 10 commits
-
-
Michael Avila authored
-
Michael Avila authored
-
Michael Avila authored
-
Michael Avila authored
-
Michael Avila authored
-
Michael Avila authored
-
Michael Avila authored
-
Michael Avila authored
-
Michael Avila authored
-
Michael Avila authored
-
- 21 Mar, 2019 2 commits
-
-
Michael Avila authored
-
Michael Avila authored
-
- 20 Mar, 2019 5 commits
-
-
Michael Avila authored
-
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
-