Versions in this module Expand all Collapse all v1 v1.0.0 Apr 12, 2021 Changes in this version + var ErrMaxScanLimitExceeded = errors.New("limit should be less than MaxRawKVScanLimit") + type Client struct + func NewClient(ctx context.Context, pdAddrs []string, conf config.Config) (*Client, error) + func (c *Client) BatchDelete(ctx context.Context, keys [][]byte) error + func (c *Client) BatchGet(ctx context.Context, keys [][]byte) ([][]byte, error) + func (c *Client) BatchPut(ctx context.Context, keys, values [][]byte, options ...PutOption) error + func (c *Client) Close() error + func (c *Client) ClusterID() uint64 + func (c *Client) Delete(ctx context.Context, key []byte) error + func (c *Client) DeleteRange(ctx context.Context, startKey []byte, endKey []byte) error + func (c *Client) Get(ctx context.Context, key []byte) ([]byte, error) + func (c *Client) GetKeyTTL(ctx context.Context, key []byte) (*uint64, error) + func (c *Client) Put(ctx context.Context, key, value []byte, options ...PutOption) error + func (c *Client) ReverseScan(ctx context.Context, startKey, endKey []byte, limit int, options ...ScanOption) (keys [][]byte, values [][]byte, err error) + func (c *Client) Scan(ctx context.Context, startKey, endKey []byte, limit int, options ...ScanOption) (keys [][]byte, values [][]byte, err error) + type PutOption struct + TTL uint64 + type ScanOption struct + KeyOnly bool + func DefaultScanOption() ScanOption Other modules containing this package github.com/tikv/client-go/v2