clickhouse

package
v0.0.0-...-6f847f4 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2026 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckIfClickHouseCloudHasSharedMergeTreeEnabled

func CheckIfClickHouseCloudHasSharedMergeTreeEnabled(ctx context.Context, logger log.Logger,
	conn clickhouse.Conn,
) error

func CheckIfTablesEmptyAndEngine

func CheckIfTablesEmptyAndEngine(ctx context.Context, logger log.Logger, conn clickhouse.Conn,
	tables []string, initialSnapshotEnabled bool, checkForCloudSMT bool, allowNonEmpty bool,
) error

func CheckNotSystemDatabase

func CheckNotSystemDatabase(database string) error

func EscapeStr

func EscapeStr(value string) string

func Exec

func Exec(ctx context.Context, logger log.Logger,
	conn clickhouse.Conn, query string, args ...any,
) error

func GetTableColumnsMapping

func GetTableColumnsMapping(ctx context.Context, logger log.Logger, conn clickhouse.Conn,
	tables []string,
) (map[string][]ClickHouseColumn, error)

func Query

func Query(ctx context.Context, logger log.Logger,
	conn clickhouse.Conn, query string, args ...any,
) (driver.Rows, error)

func QueryRow

func QueryRow(ctx context.Context, logger log.Logger,
	conn clickhouse.Conn, query string, args ...any,
) driver.Row

func QuoteIdentifier

func QuoteIdentifier(value string) string

func QuoteLiteral

func QuoteLiteral(value string) string

Types

type ClickHouseColumn

type ClickHouseColumn struct {
	Name        string
	Type        string
	DefaultKind string
}

Jump to

Keyboard shortcuts

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