conn

package
v0.0.0-rc6 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConnectNative

func ConnectNative(host string, cfg ConnParams, hosts ...string) (*sql.DB, error)

func GetClickhouseOptions

func GetClickhouseOptions(cfg ConnParams, hosts []string) (*clickhouse.Options, error)

func NewTLS

func NewTLS(config ConnParams) (*tls.Config, error)

func ResolveShards

func ResolveShards(config model.ChSinkParams, transfer *dp_model.Transfer) error

Types

type ConnParams

type ConnParams interface {
	User() string
	Password() string
	ResolvePassword() (string, error)
	Database() string
	HTTPPort() int
	NativePort() int
	SSLEnabled() bool
	PemFileContent() string
	RootCertPaths() []string
}

Jump to

Keyboard shortcuts

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