Commit Graph

12 Commits

Author SHA1 Message Date
Yilin Chen 5a0b6feddf Use async/await in the transaction APIs
After this commit, the library requires a nightly Rust compiler to build.

The required toolchain version is also updated in README.md and .travis.yml.

Signed-off-by: Yilin Chen <sticnarf@gmail.com>
2019-07-31 13:53:57 +08:00
Nick Cameron 18f538c008 Reorganise futures imports
Signed-off-by: Nick Cameron <nrc@ncameron.org>
2019-06-05 11:04:34 +12:00
Nick Cameron 98108bf1fe Rename Client::new to connect (#64)
Signed-off-by: Nick Cameron <nrc@ncameron.org>
2019-06-04 15:55:41 -07:00
Nick Cameron bb044e6a83 Use .await syntax
Signed-off-by: Nick Cameron <nrc@ncameron.org>
2019-05-30 10:20:03 +12:00
Nick Cameron 6353dbcfe3 Migrate to futures 0.3
Signed-off-by: Nick Cameron <nrc@ncameron.org>
2019-05-30 10:20:03 +12:00
Nick Cameron 8defd7769b Bring license headers inline with TiKV
Signed-off-by: Nick Cameron <nrc@ncameron.org>
2019-05-10 13:48:44 +12:00
Ana Hobden 593fe483f8 Don't copy Config internally. Take the value.
Signed-off-by: Ana Hobden <operator@hoverbear.org>
2019-02-21 11:37:58 -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
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 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