clickhouse

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClickhouseScrapper

type ClickhouseScrapper struct {
	// contains filtered or unexported fields
}

func NewClickhouseScrapper

func NewClickhouseScrapper(ctx context.Context, conf ClickhouseScrapperConf) (*ClickhouseScrapper, error)

func (*ClickhouseScrapper) Close

func (e *ClickhouseScrapper) Close() error

func (*ClickhouseScrapper) DialectType added in v0.1.8

func (e *ClickhouseScrapper) DialectType() string

func (*ClickhouseScrapper) Executor

func (*ClickhouseScrapper) IsPermissionError added in v0.1.1

func (e *ClickhouseScrapper) IsPermissionError(err error) bool

func (*ClickhouseScrapper) QueryCatalog

func (e *ClickhouseScrapper) QueryCatalog(ctx context.Context) ([]*scrapper.CatalogColumnRow, error)

func (*ClickhouseScrapper) QueryCustomMetrics

func (e *ClickhouseScrapper) QueryCustomMetrics(ctx context.Context, sql string, args ...any) ([]*scrapper.CustomMetricsRow, error)

func (*ClickhouseScrapper) QueryDatabases

func (e *ClickhouseScrapper) QueryDatabases(ctx context.Context) ([]*scrapper.DatabaseRow, error)

func (*ClickhouseScrapper) QuerySegments

func (e *ClickhouseScrapper) QuerySegments(ctx context.Context, sql string, args ...any) ([]*scrapper.SegmentRow, error)

func (*ClickhouseScrapper) QuerySqlDefinitions

func (e *ClickhouseScrapper) QuerySqlDefinitions(ctx context.Context) ([]*scrapper.SqlDefinitionRow, error)

func (*ClickhouseScrapper) QueryTableMetrics

func (e *ClickhouseScrapper) QueryTableMetrics(ctx context.Context, lastMetricsFetchTime time.Time) ([]*scrapper.TableMetricsRow, error)

func (*ClickhouseScrapper) QueryTables

func (e *ClickhouseScrapper) QueryTables(ctx context.Context) ([]*scrapper.TableRow, error)

func (*ClickhouseScrapper) SqlDialect added in v0.1.8

func (e *ClickhouseScrapper) SqlDialect() sqldialect.Dialect

func (*ClickhouseScrapper) ValidateConfiguration

func (e *ClickhouseScrapper) ValidateConfiguration(ctx context.Context) ([]string, error)

type ClickhouseScrapperConf

type ClickhouseScrapperConf struct {
	dwhexecclickhouse.ClickhouseConf
	DatabaseName string
}

Jump to

Keyboard shortcuts

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