internal

package
v0.0.0-...-6337631 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2024 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateRefreshableMaterializedView

func CreateRefreshableMaterializedView(ctx context.Context, client clickhouse.Conn, rmv Rmv) error

func NewClickHouseClient

func NewClickHouseClient(ctx context.Context, cfg Config) (driver.Conn, error)

Types

type Config

type Config struct {
	Host     string `env:"CLICKHOUSE_HOST,required"`
	Database string `env:"CLICKHOUSE_DB,required"`
	User     string `env:"CLICKHOUSE_USER,required"`
	Password string `env:"CLICKHOUSE_PASSWORD,required"`
}

type Rmv

type Rmv struct {
	Database        string
	TableName       string
	TableDefinition string
	SelectQuery     string
}

Jump to

Keyboard shortcuts

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