Andy Lok
1178d79ed6
implement the complete keyspace feature ( #439 )
...
Signed-off-by: Andy Lok <andylokandy@hotmail.com>
2023-12-27 18:12:40 +08:00
Xuanwo
2761270f6d
build: Make sure tikv-client works on stable rust ( #412 )
...
Signed-off-by: Xuanwo <github@xuanwo.io>
2023-07-16 23:51:11 +08:00
Andy Lok
e49bc09496
Combine workspace into a unicrate ( #402 )
...
Signed-off-by: Andy Lok <andylokandy@hotmail.com>
2023-07-10 10:59:30 +08:00
Andy Lok
797960edfb
Improve rustfmt config ( #401 )
...
Signed-off-by: Andy Lok <andylokandy@hotmail.com>
2023-07-09 17:07:13 +08:00
Andy Lok
0a1de19450
Migrate to tonic ( #399 )
...
* Fix publish issue
Signed-off-by: Andy Lok <andylokandy@hotmail.com>
* migrate to tonic
Signed-off-by: Andy Lok <andylokandy@hotmail.com>
* fix
Signed-off-by: Andy Lok <andylokandy@hotmail.com>
* fix
Signed-off-by: Andy Lok <andylokandy@hotmail.com>
* address comment
Signed-off-by: Andy Lok <andylokandy@hotmail.com>
---------
Signed-off-by: Andy Lok <andylokandy@hotmail.com>
2023-07-08 16:27:11 +08:00
Ping Yu
d2f78b2768
ci: Fix CI errors ( #381 )
...
Signed-off-by: Ping Yu <yuping@pingcap.com>
2022-12-14 10:21:58 +08:00
ekexium
fcda3d0954
impl Clone for Client ( #349 )
...
* impl Clone for Client
Signed-off-by: ekexium <ekexium@gmail.com>
* fix clippy
Signed-off-by: ekexium <ekexium@gmail.com>
* Empty-Commit
Signed-off-by: ekexium <ekexium@fastmail.com>
* cache in github jobs
Signed-off-by: ekexium <ekexium@fastmail.com>
2022-06-15 19:05:44 +08:00
Shashwat Jaiswal
4404c7e1f0
migrate to slog ( #298 )
...
* migrate to slog
Signed-off-by: Shashwat Jaiswal <shashwatjaiswal2001@gmail.com>
* added optional logger while creating client
Signed-off-by: Shashwat Jaiswal <shashwatjaiswal2001@gmail.com>
* simplified unwrap expression
Signed-off-by: Shashwat Jaiswal <shashwatjaiswal2001@gmail.com>
* fixed rustfmt
Signed-off-by: Shashwat Jaiswal <shashwatjaiswal2001@gmail.com>
2021-07-08 12:11:21 +08:00
Nick Cameron
8cb8dd666a
Refactor the command-abstraction into a composable plan abstraction
...
Signed-off-by: Nick Cameron <nrc@ncameron.org>
2021-02-17 13:06:07 +13:00
ekexium
c42305a045
give examples default pd addresses
...
Signed-off-by: ekexium <ekexium@gmail.com>
2021-01-22 17:47:56 +08:00
Andy Lok
c8c7c02dcd
Add example for key_exists
...
Signed-off-by: Andy Lok <andylokandy@hotmail.com>
2021-01-18 18:18:54 +08:00
ekexium
578be6cff2
refactor: fix nightly cargo clippy
...
Signed-off-by: ekexium <ekexium@gmail.com>
2021-01-11 16:40:38 +08:00
Nick Cameron
3a29cb39a4
Address reviewer comments
...
Signed-off-by: Nick Cameron <nrc@ncameron.org>
2021-01-06 08:55:09 +13:00
Nick Cameron
b46022b7db
Some renaming (and adds one method)
...
Signed-off-by: Nick Cameron <nrc@ncameron.org>
2021-01-05 14:48:57 +13:00
ekexium
6e8eef7fcf
fix examples
...
Signed-off-by: ekexium <ekexium@gmail.com>
2020-12-24 15:33:29 +08:00
Andy Lok
d8887b054e
apply clippy
...
Signed-off-by: Andy Lok <andylokandy@hotmail.com>
2020-12-15 18:22:39 +08:00
Andy Lok
9cb904a499
split scan() into scan() and scan_keys()
...
Signed-off-by: Andy Lok <andylokandy@hotmail.com>
2020-11-24 17:45:11 +08:00
Andy Lok
1857ed2f83
Resturcture take2
...
Signed-off-by: Andy Lok <andylokandy@hotmail.com>
2020-11-23 21:48:41 +08:00
Andy Lok
21a8dc43ad
Merge from master
...
Signed-off-by: Andy Lok <andylokandy@hotmail.com>
2020-11-20 20:53:11 +08:00
龙方淞
c01495e20f
Basic support of pessimistic transaction ( #184 )
...
Signed-off-by: longfangsong <longfangsong@icloud.com>
2020-10-22 15:03:54 +08:00
ekexium
3f8c3a7200
fix a bug in examples/raw
...
Signed-off-by: ekexium <ekexium@gmail.com>
2020-09-28 11:19:36 +08:00
ekexium
b71f989c92
move key_only from txn.scan to txn client
...
Signed-off-by: ekexium <ekexium@gmail.com>
2020-09-22 14:28:28 +08:00
ekexium
475fe54194
rename txn.set to txn.put
...
Signed-off-by: ekexium <ekexium@gmail.com>
2020-09-22 10:50:17 +08:00
ekexium
796cfbaa79
move key_only parameter from raw client to its scan methods
...
Signed-off-by: ekexium <ekexium@gmail.com>
2020-09-22 10:40:54 +08:00
ekexium
1868118ea6
set Value type to an alias of Vec<u8>
...
Signed-off-by: ekexium <ekexium@gmail.com>
2020-07-08 15:54:23 +08:00
you06
b7ced1f44e
raw: Implement `RawBatchScan` ( #134 )
...
Signed-off-by: you06 <you1474600@gmail.com>
2020-05-25 11:52:58 +08:00
Renkai
570ebc3f41
polish code
...
Signed-off-by: Renkai <gaelookair@gmail.com>
2020-05-20 16:43:07 +08:00
Renkai
929e192fe4
Merge branch 'master' into async_reconnect
2020-05-18 16:41:17 +08:00
Weihang Lo
f3d4034e41
Fix typo
...
Signed-off-by: Weihang Lo <me@weihanglo.tw>
2020-05-07 09:44:11 +08:00
Weihang Lo
731cb10360
Add `key_only` param for transactional scan
...
Signed-off-by: Weihang Lo <me@weihanglo.tw>
2020-05-07 02:38:59 +08:00
Weihang Lo
963e3b3368
Add limit param for transactional scan
...
Signed-off-by: Weihang Lo <me@weihanglo.tw>
2020-05-05 07:41:26 +08:00
Weihang Lo
35eeceb82c
Use expect and remove unused arg
...
Signed-off-by: Weihang Lo <me@weihanglo.tw>
2020-05-05 07:15:42 +08:00
Weihang Lo
b0b1b26173
Update transction example
...
Signed-off-by: Weihang Lo <me@weihanglo.tw>
2020-05-04 23:15:06 +08:00
Renkai
25007df435
fix compile error
...
Signed-off-by: Renkai <gaelookair@gmail.com>
2020-04-07 16:58:23 +08:00
Yilin Chen
91aaedff2b
update dependencies and fix ci
...
Signed-off-by: Yilin Chen <sticnarf@gmail.com>
2020-03-19 12:17:46 +08:00
Yilin Chen
1083aef8b4
Add integration tests
...
Signed-off-by: Yilin Chen <sticnarf@gmail.com>
2019-09-23 11:30:21 +08:00
Yilin Chen
c89c0fc21a
Add background worker
...
Signed-off-by: Yilin Chen <sticnarf@gmail.com>
2019-08-30 12:14:35 +08:00
Yilin Chen
f093c64f21
Upgrade toolchain and dependencies.
...
CI errors should be fixed and feature gates are removed.
Signed-off-by: Yilin Chen <sticnarf@gmail.com>
2019-08-26 11:45:04 +08:00
Yilin Chen
5638c419cb
Move requests to their own modules
...
Signed-off-by: Yilin Chen <sticnarf@gmail.com>
2019-08-19 14:53:48 +08:00
Yilin Chen
a74e1abd1a
Fix tests
...
Signed-off-by: Yilin Chen <sticnarf@gmail.com>
2019-08-12 14:08:49 +08:00
Nick Cameron
8165adf1f9
Refactor into a request-style API ( #87 )
...
* Refactor the raw API to be command-oriented
Signed-off-by: Nick Cameron <nrc@ncameron.org>
* WIP: provide mocks and use them for tests
Signed-off-by: Nick Cameron <nrc@ncameron.org>
2019-08-09 07:53:55 -07:00
Yilin Chen
78fa34fd37
Remove explicit Futures for transaction
...
Signed-off-by: Yilin Chen <sticnarf@gmail.com>
2019-07-31 13:53:57 +08:00
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
0ed7c8afe3
Introduce ToOwnedRange to make handling ranges a bit nicer
...
Signed-off-by: Nick Cameron <nrc@ncameron.org>
2019-07-12 14:59:45 +12:00
Nick Cameron
426d596709
Remove From impls for Key and Value
...
Closes #61
Signed-off-by: Nick Cameron <nrc@ncameron.org>
2019-07-12 14:40:42 +12:00
Nick Cameron
f1e8b34f5a
Address type-length limit in raw example
...
Signed-off-by: Nick Cameron <nrc@ncameron.org>
2019-06-24 10:42:21 +12:00
Nick Cameron
cfa5f8e34d
Replace a Loop closure with a Stream in rpc/client
...
Signed-off-by: Nick Cameron <nrc@ncameron.org>
2019-06-24 10:42:21 +12:00
Nick Cameron
4ad75c5bc7
Refactor RequestState etc to not need existential types
...
Signed-off-by: Nick Cameron <nrc@ncameron.org>
2019-06-24 10:42:21 +12: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