tikv / website

Website for tikv.org
19 stars 62 forks source link

Misleading doc for the Go client library. #219

Closed jon-whit closed 3 years ago

jon-whit commented 3 years ago

This page https://tikv.org/docs/4.0/reference/clients/go/ references an API interface for the Transactional Key-Value API that doesn't exist in the official Go documentation.

Begin() -> Txn
Txn.Get(key []byte) -> (value []byte)
Txn.Set(key []byte, value []byte)
Txn.Iter(begin, end []byte) -> Iterator
Txn.Delete(key []byte)
Txn.Commit()

But the latest Godoc a Transaction doesn't have any of those methods except Commit.