Documentation
¶
Index ¶
- func ParseErrorCode(err error) string
- type Client
- func (c *Client) GetDB() *sql.DB
- func (c *Client) QueryRow(ctx context.Context, table, query string) *sql.Row
- func (c *Client) Reconnect(ctx context.Context) error
- func (c *Client) Start(ctx context.Context) error
- func (c *Client) Stop(ctx context.Context) error
- func (c *Client) WithLabels(network, processor string) *Client
- type Config
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseErrorCode ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client represents a ClickHouse client for data storage
func (*Client) Reconnect ¶ added in v0.0.11
Reconnect closes the existing connection and creates a new one
func (*Client) WithLabels ¶ added in v0.0.5
WithLabels sets the network and processor labels for metrics
Click to show internal directories.
Click to hide internal directories.