update readme (#84)

Signed-off-by: disksing <i@disksing.com>
This commit is contained in:
disksing 2021-06-16 18:01:19 +08:00 committed by GitHub
parent a76108498b
commit ea978621f4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 17 additions and 12 deletions

View File

@ -18,8 +18,8 @@ jobs:
with:
go-version: 1.16
- name: Build
run: go build -v ./...
- name: Tidy
run: go mod tidy
- name: Test
run: go test -v ./...

View File

@ -1,10 +1,23 @@
# TiKV Go Client
TiKV Go Client provides support for interacting with the TiKV server in the form of a Go library.
TiKV Go Client provides support for interacting with the [TiKV](https://github.com/tikv/tikv) server in the form of a Go library.
![Stability Active](https://img.shields.io/badge/Stability-Active-yellow)
[![Go Reference](https://pkg.go.dev/badge/github.com/tikv/client-go/v2.svg)](https://pkg.go.dev/github.com/tikv/client-go/v2)
## Package versions
There are 2 major versions of the `client-go` package.
- `v2` is the new stable and active version. This version was extracted from [pingcap/tidb](https://github.com/pingcap/tidb) and it includes new TiKV features like Follower Read, 1PC, Async Commit. The development of this version is on the `v2` branch. The documentation for this version is below.
- `v1` is the previous stable version and is only maintained for bug fixes. You can read the documentation [here](https://tikv.org/docs/4.0/reference/clients/go/).
## Usage/Examples
TODO
```bash
go get github.com/tikv/client-go/v2@COMMIT_HASH_OR_TAG_VERSION
```
## Running Tests
@ -14,14 +27,6 @@ To run tests, run the following command
go test ./...
```
## FAQ
#### Difference between v1 and v2 version
The v2 version is extracted from the TiDB project and will be kept up to date afterwards.
v1 will be gradually abandoned for maintenance and is currently placed in the master branch for compatibility reasons.
## Used By
This project is used by the following projects: