Documentation ¶
Overview ¶
Package tidbclient provides a flexible TiDB API access to any TiDB instance.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNS = errorx.NewNamespace("tidb_client") // ErrAuthFailed means the authentication is failed when connecting to the TiDB Server ErrAuthFailed = ErrNS.NewType("tidb_auth_failed") // ErrConnFailed means there is a connection (like network) problem when connecting to the TiDB Server ErrConnFailed = ErrNS.NewType("tidb_conn_failed") )
Functions ¶
This section is empty.
Types ¶
type SQLClient ¶
type SQLClient struct {
// contains filtered or unexported fields
}
func NewSQLClient ¶
func NewSQLClient(config SQLClientConfig) *SQLClient
type SQLClientConfig ¶
type StatusClient ¶
type StatusClient struct {
*httpclient.Client
}
func NewStatusClient ¶
func NewStatusClient(config httpclient.APIClientConfig) (*StatusClient, error)
Returns error when config is invalid.
Click to show internal directories.
Click to hide internal directories.