Commit Graph

42 Commits

Author SHA1 Message Date
Andy Lok bd14485ca7
chore: bump version 0.3.0 (#434)
Signed-off-by: Andy Lok <andylokandy@hotmail.com>
2023-11-21 16:54:09 +08:00
0x29a 788d6e211b
ci: upgrade action & use nextest instead of test for ut (#422)
* ci: upgrade action & use nextest instead of test

Signed-off-by: ben1009 <liuhe1009@gmail.com>

* fix DCO check

Signed-off-by: ben1009 <liuhe1009@gmail.com>

* back to use test in IT

Signed-off-by: ben1009 <liuhe1009@gmail.com>

* transaction: Support unsafe_destroy_range interface (#420)

* add unsafe_destroy_range

Signed-off-by: Ping Yu <yuping@pingcap.com>

* polish

Signed-off-by: Ping Yu <yuping@pingcap.com>

* polish

Signed-off-by: Ping Yu <yuping@pingcap.com>

* fix compile error on lower version of rust

Signed-off-by: Ping Yu <yuping@pingcap.com>

---------

Signed-off-by: Ping Yu <yuping@pingcap.com>
Signed-off-by: ben1009 <liuhe1009@gmail.com>

* add install guid for nextest in readme

Signed-off-by: ben1009 <liuhe1009@gmail.com>

---------

Signed-off-by: ben1009 <liuhe1009@gmail.com>
Signed-off-by: Ping Yu <yuping@pingcap.com>
Co-authored-by: Ping Yu <yuping@pingcap.com>
2023-10-08 14:16:44 +08:00
Xuanwo 9ae3e4fa85
docs: Cmake and gcc is not needed anymore (#403)
* docs: Cmake and gcc is not needed anymore

Signed-off-by: Xuanwo <github@xuanwo.io>

* Update links

Signed-off-by: Xuanwo <github@xuanwo.io>

---------

Signed-off-by: Xuanwo <github@xuanwo.io>
2023-07-10 02:20:29 +08:00
Andy Lok 8875c96a3b
Bump version 0.2.0 (#395)
Signed-off-by: Andy Lok <andylokandy@hotmail.com>
2023-06-27 16:00:34 +08:00
ekexium 027a7dffd1
ci: remove doc action and travis config (#309)
* ci: remove doc action and travis config

Signed-off-by: ekexium <ekexium@gmail.com>

* ci: deny warnings

Signed-off-by: ekexium <ekexium@gmail.com>
2022-07-27 13:14:39 +08:00
yongpan0709 a1c4eda938
Build tool min version (#358) 2022-07-14 14:25:57 +08:00
Ziqian Qin 9eced92d14
Introduce internals.tidb.io in README (#319)
* update readme.md

Signed-off-by: ekexium <ekexium@gmail.com>

* fix clippy

Signed-off-by: ekexium <ekexium@gmail.com>

* ci: update commands for tiup 1.6

Signed-off-by: ekexium <ekexium@gmail.com>

* fix fmt

Signed-off-by: ekexium <ekexium@gmail.com>

* remove SIG-related stuff in README

Signed-off-by: ekexium <ekexium@gmail.com>
2021-10-25 15:01:24 +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
Ziqian Qin dc793a519b
doc: use the tikv-slim mode in tiup >= 1.5 (#304)
Signed-off-by: ekexium <ekexium@gmail.com>
2021-06-19 15:36:35 +08:00
Nick Cameron 3f1ec8e71d bump version number
Signed-off-by: Nick Cameron <nrc@ncameron.org>
2021-05-12 13:51:23 +12:00
Nick Cameron 576e25bfa1
Add docs about TiKV cluster to gettimg-started.md (#282)
Signed-off-by: Nick Cameron <nrc@ncameron.org>

Co-authored-by: Ziqian Qin <ekexium@gmail.com>
2021-05-11 21:27:09 +08:00
Nick Cameron ebf7fbf823
Add docs.rs badge (#281)
Signed-off-by: Nick Cameron <nrc@ncameron.org>
2021-05-10 15:26:01 +08:00
Nick Cameron 3cebd3e5f4 Add getting started docs
Signed-off-by: Nick Cameron <nrc@ncameron.org>
2021-05-07 16:32:20 +12:00
Schrodinger ZHU Yifan 18a6813312 quote version string to avoid syntax error on display
Signed-off-by: SchrodingerZhu <i@zhuyi.fan>
2021-05-05 17:29:18 +08:00
Nick Cameron 9b47f6810b 0.0.99 release
Signed-off-by: Nick Cameron <nrc@ncameron.org>
2021-04-29 16:02:31 +12:00
Nick Cameron bace9d951f De-async buffer
Signed-off-by: Nick Cameron <nrc@ncameron.org>
2021-04-27 13:49:51 +12:00
Nick Cameron 8a128ac7ff Review changes
Signed-off-by: Nick Cameron <nrc@ncameron.org>
2021-04-22 13:45:41 +12:00
Nick Cameron 995fe61f54 Update README
Signed-off-by: Nick Cameron <nrc@ncameron.org>
2021-04-22 13:45:41 +12:00
Andy Lok e165566e43 fix typo
Signed-off-by: Andy Lok <andylokandy@hotmail.com>
2021-01-18 21:31:28 +08:00
Andy Lok ef14345b2b Update README.md
Signed-off-by: Andy Lok <andylokandy@hotmail.com>
2021-01-18 18:24:05 +08:00
ekexium 89ac804705
Fix several bugs in pessimistic transaction (#218)
* enable pessimistic_lock req to return values

Signed-off-by: ekexium <ekexium@gmail.com>

* refactor Mutation: Lock should be able to cache values

Signed-off-by: ekexium <ekexium@gmail.com>

* fix: read and lock operations should not override each other

Signed-off-by: ekexium <ekexium@gmail.com>

* rewrite get_for_update: make semantics similar to TiDB

Signed-off-by: ekexium <ekexium@gmail.com>

* fix: correctly set for_update_ts for pessimistic rollback request

Signed-off-by: ekexium <ekexium@gmail.com>

* fix: allow update_cache to 'update' existing keys, but check the values

Signed-off-by: ekexium <ekexium@gmail.com>

* test: add test for pessimistic rollback

Signed-off-by: ekexium <ekexium@gmail.com>

* doc: add some doc for get_for_update

Signed-off-by: ekexium <ekexium@gmail.com>

* fix: make batch_for_update private

Signed-off-by: ekexium <ekexium@gmail.com>

* resolve comments

Signed-off-by: ekexium <ekexium@gmail.com>

* ci: sleep a while to wait for PD

Signed-off-by: ekexium <ekexium@gmail.com>

* feat: lock_keys is available for both optimistic and pessimistic txns

Signed-off-by: ekexium <ekexium@gmail.com>

* refactor: rename ReadLockCached to CachedAndLocked

Signed-off-by: ekexium <ekexium@gmail.com>

* revert changes to `batch_get_for_update`

Signed-off-by: ekexium <ekexium@gmail.com>

* test: ignore unstable mock-tikv test

Signed-off-by: ekexium <ekexium@gmail.com>

* refactor: rename `ReadLockCached` to `Locked`

Signed-off-by: ekexium <ekexium@gmail.com>

* test: do not use Fallible

Signed-off-by: ekexium <ekexium@gmail.com>

* doc: update readme format

Signed-off-by: ekexium <ekexium@gmail.com>

Co-authored-by: Nick Cameron <nrc@ncameron.org>
2021-01-14 16:56:28 +08:00
ekexium 23714d7ac9 readme: update dependency and doc
Signed-off-by: ekexium <ekexium@gmail.com>
2020-11-02 11:56:47 +08:00
Nick Cameron a399f8157a
Update README.md 2020-10-23 11:51:35 +13:00
Nick Cameron 20666c84e8
Update README.md
Change docs link
2020-10-23 11:50:54 +13:00
ekexium a23b160f91 readme: remove gc workaround
Signed-off-by: ekexium <ekexium@gmail.com>
2020-10-13 11:14:35 +08:00
ekexium 06283c0ad3 fix typo
Signed-off-by: ekexium <ekexium@gmail.com>
2020-10-12 10:12:05 +08:00
ekexium f4f86b18f9 add a workaround of GC
Signed-off-by: ekexium <ekexium@gmail.com>
2020-09-30 15:10:21 +08:00
ekexium 46d20a6c42 move raw_batch_scan to experimental
Signed-off-by: ekexium <ekexium@gmail.com>
2020-09-29 16:14:40 +08:00
ekexium 59d8307d08
Merge branch 'master' into update-readme 2020-09-29 14:18:22 +08:00
George Teo ad8ef075af
Add codec for encoding region for transaction client (#162)
Add codec for encoding region for transaction client. Fix some other bugs.

Signed-off-by: George Teo <george.c.teo@gmail.com>
Co-authored-by: ekexium <ekexium@gmail.com>
2020-09-29 14:05:39 +08:00
ekexium 3ffcb6f0ed add some descriptions on noteworthy behavior of requests
Signed-off-by: ekexium <ekexium@gmail.com>
2020-09-28 17:34:03 +08:00
ekexium 398a673a5f readme: separate raw and txn API table
Signed-off-by: ekexium <ekexium@gmail.com>
2020-09-23 16:39:10 +08:00
ekexium 914ed72389 readme: add API list and intro to types
Signed-off-by: ekexium <ekexium@gmail.com>
2020-09-23 16:33:52 +08:00
ekexium 316a194002 update readme: dependency, limit and code snippet
Signed-off-by: ekexium <ekexium@gmail.com>
2020-09-23 14:15:33 +08:00
Yilin Chen fe09429318
fix clippy
Signed-off-by: Yilin Chen <sticnarf@gmail.com>
2020-03-19 14:18: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 4ce0844280
Fix a clippy bug by upgrading toolchain version
Signed-off-by: Yilin Chen <sticnarf@gmail.com>
2019-07-31 16:38:16 +08:00
Yilin Chen ebcf7d4469
Address comments
Signed-off-by: Yilin Chen <sticnarf@gmail.com>
2019-07-31 16:10:32 +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 aa3e1af271 Force local and Travis builds to use an old nightly (#67)
Signed-off-by: Nick Cameron <nrc@ncameron.org>
2019-06-18 16:34:28 -07:00
Nick Cameron e9d32b1ed0 Update the README with info about Rust toolchains
Signed-off-by: Nick Cameron <nrc@ncameron.org>
2019-05-30 10:20:03 +12:00
Ana Hobden a5a6b152cd
Add README and some lib.rs docs (#31)
* Add README and some lib.rs docs

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

* Apply suggestions from code review

Nit fixes.

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

* Nit fixes

Signed-off-by: Ana Hobden <operator@hoverbear.org>
2019-02-15 14:55:25 -08:00