clickhouse

package
v0.18.0-beta04 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2024 License: AGPL-3.0 Imports: 15 Imported by: 0

Documentation

Overview

Package clickhouse contains wire provider for clickhouse connection and migration.

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
}

Ch define a connection to a ClickHouse instance.

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