Documentation
¶
Index ¶
- type ClickhouseScrapper
- func (e *ClickhouseScrapper) Close() error
- func (e *ClickhouseScrapper) DialectType() string
- func (e *ClickhouseScrapper) Executor() *dwhexecclickhouse.ClickhouseExecutor
- func (e *ClickhouseScrapper) IsPermissionError(err error) bool
- func (e *ClickhouseScrapper) QueryCatalog(ctx context.Context) ([]*scrapper.CatalogColumnRow, error)
- func (e *ClickhouseScrapper) QueryCustomMetrics(ctx context.Context, sql string, args ...any) ([]*scrapper.CustomMetricsRow, error)
- func (e *ClickhouseScrapper) QueryDatabases(ctx context.Context) ([]*scrapper.DatabaseRow, error)
- func (e *ClickhouseScrapper) QuerySegments(ctx context.Context, sql string, args ...any) ([]*scrapper.SegmentRow, error)
- func (e *ClickhouseScrapper) QuerySqlDefinitions(ctx context.Context) ([]*scrapper.SqlDefinitionRow, error)
- func (e *ClickhouseScrapper) QueryTableMetrics(ctx context.Context, lastMetricsFetchTime time.Time) ([]*scrapper.TableMetricsRow, error)
- func (e *ClickhouseScrapper) QueryTables(ctx context.Context) ([]*scrapper.TableRow, error)
- func (e *ClickhouseScrapper) SqlDialect() sqldialect.Dialect
- func (e *ClickhouseScrapper) ValidateConfiguration(ctx context.Context) ([]string, error)
- type ClickhouseScrapperConf
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 (e *ClickhouseScrapper) Executor() *dwhexecclickhouse.ClickhouseExecutor
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 (*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
}
Click to show internal directories.
Click to hide internal directories.