Versions in this module Expand all Collapse all v1 v1.0.0 Apr 12, 2021 Changes in this version + type Client struct + func NewClient(ctx context.Context, pdAddrs []string, config config.Config) (*Client, error) + func (c *Client) Begin(ctx context.Context) (*Transaction, error) + func (c *Client) BeginWithTS(ctx context.Context, ts uint64) *Transaction + func (c *Client) Close() error + func (c *Client) GetTS(ctx context.Context) (uint64, error) + type Transaction struct + func (txn *Transaction) BatchGet(ctx context.Context, keys []key.Key) (map[string][]byte, error) + func (txn *Transaction) Commit(ctx context.Context) error + func (txn *Transaction) DelOption(opt kv.Option) + func (txn *Transaction) Delete(k key.Key) error + func (txn *Transaction) Get(ctx context.Context, k key.Key) ([]byte, error) + func (txn *Transaction) IsReadOnly() bool + func (txn *Transaction) Iter(ctx context.Context, k key.Key, upperBound key.Key) (kv.Iterator, error) + func (txn *Transaction) IterReverse(ctx context.Context, k key.Key) (kv.Iterator, error) + func (txn *Transaction) Len() int + func (txn *Transaction) LockKeys(keys ...key.Key) error + func (txn *Transaction) Rollback() error + func (txn *Transaction) Set(k key.Key, v []byte) error + func (txn *Transaction) SetOption(opt kv.Option, val interface{}) + func (txn *Transaction) Size() int + func (txn *Transaction) String() string + func (txn *Transaction) Valid() bool Other modules containing this package github.com/tikv/client-go/v2