clickhouse

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2024 License: AGPL-3.0 Imports: 15 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 zerolog.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 zerolog.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 zerolog.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