ch

package
v1.17.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 13, 2026 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ProtocolCoroot = "coroot"
)

Variables

This section is empty.

Functions

func GetConfigFromRemoteCoroot added in v1.17.7

func GetConfigFromRemoteCoroot(cfg *db.IntegrationClickhouse) (*db.IntegrationClickhouse, error)

func ReplaceTables

func ReplaceTables(query string, distributed bool) string

Types

type ClickHouseInfo

type ClickHouseInfo struct {
	Name  string
	Cloud bool
}

func (ClickHouseInfo) UseDistributed

func (ci ClickHouseInfo) UseDistributed() bool

type Dialer added in v1.17.7

type Dialer struct {
	// contains filtered or unexported fields
}

func GetRemoteCorootDialer added in v1.17.7

func GetRemoteCorootDialer(cfg *db.IntegrationClickhouse) *Dialer

func (*Dialer) Dial added in v1.17.7

func (d *Dialer) Dial(ctx context.Context, address string) (net.Conn, error)

func (*Dialer) DialContext added in v1.17.7

func (d *Dialer) DialContext(ctx context.Context, network, address string) (net.Conn, error)

type LowLevelClient

type LowLevelClient struct {
	// contains filtered or unexported fields
}

func NewLowLevelClient

func NewLowLevelClient(ctx context.Context, cfg *db.IntegrationClickhouse) (*LowLevelClient, error)

func (*LowLevelClient) Close

func (c *LowLevelClient) Close()

func (*LowLevelClient) CreateDB

func (c *LowLevelClient) CreateDB(ctx context.Context, name string) error

func (*LowLevelClient) Do

func (c *LowLevelClient) Do(ctx context.Context, q ch.Query) (err error)

func (*LowLevelClient) Exec

func (c *LowLevelClient) Exec(ctx context.Context, query string) error

func (*LowLevelClient) GetInfo

func (c *LowLevelClient) GetInfo() (ClickHouseInfo, error)

func (*LowLevelClient) Migrate

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL