Commit Graph

13 Commits

Author SHA1 Message Date
Clément Renault 3c3d7f8df3
Improve the raw example
Signed-off-by: Clément Renault <renault.cle@gmail.com>
2019-01-21 17:35:14 +01:00
Xiaoguang Sun c47b92bab4 Change raw::Client::get to return Option<Value> (#24)
Signed-off-by: Xiaoguang Sun <sunxiaoguang@zhihu.com>
2019-01-20 21:49:50 -08:00
Yilin Chen c33bc136b4 Use command line args in examples. (#20)
* Initial version of Raw Kv client

Note: raw::Client::batch_scan is not implemented yet.

Signed-off-by: Xiaoguang Sun <sunxiaoguang@zhihu.com>

* Document most public code.

Signed-off-by: Ana Hobden <operator@hoverbear.org>

* Reduce pub surface

Signed-off-by: Ana Hobden <operator@hoverbear.org>

* fmt/lint

Signed-off-by: Ana Hobden <operator@hoverbear.org>

* Add cf to concrete builder types

Signed-off-by: Xiaoguang Sun <sunxiaoguang@zhihu.com>

* Fixed some comments and confusing name

Signed-off-by: Xiaoguang Sun <sunxiaoguang@zhihu.com>

* Change Request from struct to enum

Signed-off-by: Xiaoguang Sun <sunxiaoguang@zhihu.com>

* Change tso_tx/rx channel to bounded

Signed-off-by: Xiaoguang Sun <sunxiaoguang@zhihu.com>

* Fix format issues and improve implementations

Signed-off-by: Xiaoguang Sun <sunxiaoguang@zhihu.com>

* Change to dyn trait syntax

Signed-off-by: Xiaoguang Sun <sunxiaoguang@zhihu.com>

* inline some functions

Signed-off-by: Ana Hobden <operator@hoverbear.org>

* Better note on KvPair

Signed-off-by: Ana Hobden <operator@hoverbear.org>

* Use 3 PDs in raw example

Signed-off-by: Ana Hobden <operator@hoverbear.org>

* Clarify documentation

Signed-off-by: Ana Hobden <operator@hoverbear.org>

* Get CI green

Signed-off-by: Ana Hobden <operator@hoverbear.org>

* Remove not useful PrivateKey type

Signed-off-by: Xiaoguang Sun <sunxiaoguang@zhihu.com>

* Change CUSTOM_CF to "default" in examples/raw.rs

Signed-off-by: Xiaoguang Sun <sunxiaoguang@zhihu.com>

* Use command line args in examples.

Signed-off-by: Yilin Chen <sticnarf@gmail.com>

* Fix the wrong app name in the transactional API example.

Signed-off-by: Yilin Chen <sticnarf@gmail.com>

* Extract duplicate code to a common mod

Signed-off-by: Yilin Chen <sticnarf@gmail.com>
2019-01-14 09:51:53 -08:00
siddontang 573871c2c6
Merge pull request #21 from tikv/sun/remove_cf_and_batch_scan
Remove cf and batch_scan from examples/raw.rs
2019-01-14 09:53:46 +08:00
Xiaoguang Sun 23cb2ef306 Remove cf and batch_scan from examples/raw.rs
Signed-off-by: Xiaoguang Sun <sunxiaoguang@zhihu.com>
2019-01-14 08:38:35 +08:00
Xiaoguang Sun ba8675409d The initial version of Raw KV implementation (#14)
* Initial version of Raw Kv client

Note: raw::Client::batch_scan is not implemented yet.

Signed-off-by: Xiaoguang Sun <sunxiaoguang@zhihu.com>

* Document most public code.

Signed-off-by: Ana Hobden <operator@hoverbear.org>

* Reduce pub surface

Signed-off-by: Ana Hobden <operator@hoverbear.org>

* fmt/lint

Signed-off-by: Ana Hobden <operator@hoverbear.org>

* Add cf to concrete builder types

Signed-off-by: Xiaoguang Sun <sunxiaoguang@zhihu.com>

* Fixed some comments and confusing name

Signed-off-by: Xiaoguang Sun <sunxiaoguang@zhihu.com>

* Change Request from struct to enum

Signed-off-by: Xiaoguang Sun <sunxiaoguang@zhihu.com>

* Change tso_tx/rx channel to bounded

Signed-off-by: Xiaoguang Sun <sunxiaoguang@zhihu.com>

* Fix format issues and improve implementations

Signed-off-by: Xiaoguang Sun <sunxiaoguang@zhihu.com>

* Change to dyn trait syntax

Signed-off-by: Xiaoguang Sun <sunxiaoguang@zhihu.com>

* inline some functions

Signed-off-by: Ana Hobden <operator@hoverbear.org>

* Better note on KvPair

Signed-off-by: Ana Hobden <operator@hoverbear.org>

* Use 3 PDs in raw example

Signed-off-by: Ana Hobden <operator@hoverbear.org>

* Clarify documentation

Signed-off-by: Ana Hobden <operator@hoverbear.org>

* Get CI green

Signed-off-by: Ana Hobden <operator@hoverbear.org>

* Remove not useful PrivateKey type

Signed-off-by: Xiaoguang Sun <sunxiaoguang@zhihu.com>

* Change CUSTOM_CF to "default" in examples/raw.rs

Signed-off-by: Xiaoguang Sun <sunxiaoguang@zhihu.com>
2019-01-13 14:03:21 -08:00
A. Hobden 5ed332709e
Upgrade to 2018 Edition (#7)
* Bump to 2018 edition.

Signed-off-by: Hoverbear <operator@hoverbear.org>

* Add toolchain

Signed-off-by: Hoverbear <operator@hoverbear.org>

* Fix examples

Signed-off-by: Hoverbear <operator@hoverbear.org>

* fmt and lint

Signed-off-by: Hoverbear <operator@hoverbear.org>

* We can use stable now

Signed-off-by: Hoverbear <operator@hoverbear.org>
2018-12-23 07:28:02 -08:00
A. Hobden ce6b36ada5
Add CI (#6)
* Add CI

Signed-off-by: Hoverbear <operator@hoverbear.org>

* Fix travis build

Signed-off-by: Hoverbear <operator@hoverbear.org>
2018-11-28 10:58:20 -05:00
A. Hobden 0785626abc
Add copyright (#8)
Signed-off-by: Hoverbear <operator@hoverbear.org>
2018-11-20 08:10:26 -05:00
Xiaoguang Sun ddfad81d61 Public API Request for Comments (#3)
Implement draft of https://github.com/tikv/rfcs/pull/7 as of 80457b2df1c03cbca7cb32afec95e3c20a99b8d2.
2018-11-19 09:33:22 -05:00
A. Hobden d3f036c9bd
Merge pull request #5 from Hoverbear/gitignore
Add gitignore
2018-11-14 09:43:24 -05:00
Hoverbear d8c604394f Add gitignore
Signed-off-by: Hoverbear <operator@hoverbear.org>
2018-11-13 09:52:13 -08:00
siddontang db5d4ef3ca
Initial commit 2018-08-30 09:23:10 +08:00