clickhouse

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2024 License: AGPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Connect added in v0.10.0

func Connect(logger log.Logger, cfg config.Clickhouse, maxRetry int) (conn driver.Conn)

Connect connects to clickhouse and returns a driver.Conn. This function panics if `maxRetry` Connect attempt fails.

func ProvideEmbeddedSourceDriver added in v0.10.0

func ProvideEmbeddedSourceDriver(logger log.Logger) source.Driver

ProvideEmbeddedSourceDriver is a wire provider for golang-migrate source driver.

Types

type Ch

type Ch struct {
	driver.Conn
}

func ProvideCh

func ProvideCh(logger log.Logger, cfg config.Clickhouse, source source.Driver) Ch

ProvideCh define a wire provider for Ch.

Jump to

Keyboard shortcuts

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