Author | SHA1 | Message | Date |
---|---|---|---|
Ethan Buchman | 468be0f8d6 | mv remotedb, proto, grpcdb all under db/remotedb | 7 years ago |
Christopher Goes |
20be8c75e5
|
Tweak testcases | 7 years ago |
Christopher Goes |
0b6d101c77
|
Implement batch operations | 7 years ago |
Christopher Goes |
39e1567d0a
|
Add iterator tests | 7 years ago |
Christopher Goes |
2cca5a7a4c
|
Implement TLS/SSL | 7 years ago |
Emmanuel T Odeke |
5d12e1eb46
|
remotedb: a client package implementing the db.DB interface
Simplified the abstractions to remotedb, a package that allows clients to use whatever database they can in client code without having to switch out their code e.g ```go client, err := remotedb.NewInsecure(":9888") ... // Just like they'd initialize locally in := &remotedb.Init{ Name: "test-remote-db", Type: "leveldb", Dir: "/tmp/dbs", } if err := client.InitRemote(in); err != nil { log.Fatalf("Failed to initialize the database") } v1 := client.Get(k1) client.Set(k9, dog) for itr := client.Iterator(a1, z1); itr.Valid(); itr.Next() { k, v := itr.Key(), itr.Value() dom := itr.Domain() ... } ``` |
7 years ago |