Cockroach store feature completion (#1358)

* Start fixing cockroach store

* Add prefix, suffix, limit, offset for cockroachdb store
This commit is contained in:
Jake Sanders
2020-03-17 16:15:23 +00:00
committed by GitHub
parent b3c631dd38
commit 638c219736
3 changed files with 129 additions and 9 deletions

View File

@@ -234,6 +234,16 @@ func basictest(s store.Store, t *testing.T) {
t.Error("Expiry options were not effective")
}
}
s.Write(&store.Record{Key: "a", Value: []byte("a")})
s.Write(&store.Record{Key: "aa", Value: []byte("aa")})
s.Write(&store.Record{Key: "aaa", Value: []byte("aaa")})
if results, err := s.Read("b", store.ReadPrefix()); err != nil {
t.Error(err)
} else {
if len(results) != 0 {
t.Errorf("Expected 0 results, got %d", len(results))
}
}
s.Init()
for i := 0; i < 10; i++ {