mirror of https://github.com/tikv/client-go.git
parent
a76108498b
commit
ea978621f4
|
|
@ -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 ./...
|
||||
25
README.md
25
README.md
|
|
@ -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.
|
||||
|
||||

|
||||
[](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:
|
||||
|
|
|
|||
Loading…
Reference in New Issue