clickhouse

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ServiceName         = "clickhouse-clickhouse"
	ServicePortProtocal = "TCP"
	// #nosec G101: false positive triggered by variable name which includes "secret"
	SecretName = "clickhouse-secret"
)

Variables

This section is empty.

Functions

func Connect

func Connect(url string) (*sql.DB, error)

func CreateFakeClickHouse added in v0.5.0

func CreateFakeClickHouse(t *testing.T, kubeClient kubernetes.Interface, namespace string) (db *sql.DB, mock sqlmock.Sqlmock)

func GetSecret

func GetSecret(client kubernetes.Interface, namespace string) (username string, password string, err error)

func SetupConnection

func SetupConnection(client kubernetes.Interface) (connect *sql.DB, err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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