Documentation
¶
Index ¶
- type PostgresScapperConf
- type PostgresScrapper
- func (e *PostgresScrapper) Close() error
- func (e *PostgresScrapper) Dialect() string
- func (e *PostgresScrapper) IsPermissionError(err error) bool
- func (e *PostgresScrapper) QueryCatalog(ctx context.Context) ([]*scrapper.CatalogColumnRow, error)
- func (e *PostgresScrapper) QueryCustomMetrics(ctx context.Context, sql string, args ...any) ([]*scrapper.CustomMetricsRow, error)
- func (e *PostgresScrapper) QueryDatabases(ctx context.Context) ([]*scrapper.DatabaseRow, error)
- func (e *PostgresScrapper) QuerySegments(ctx context.Context, sql string, args ...any) ([]*scrapper.SegmentRow, error)
- func (e *PostgresScrapper) QuerySqlDefinitions(ctx context.Context) ([]*scrapper.SqlDefinitionRow, error)
- func (e *PostgresScrapper) QueryTableMetrics(ctx context.Context, lastMetricsFetchTime time.Time) ([]*scrapper.TableMetricsRow, error)
- func (e *PostgresScrapper) QueryTables(ctx context.Context) ([]*scrapper.TableRow, error)
- func (e *PostgresScrapper) ValidateConfiguration(ctx context.Context) ([]string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PostgresScapperConf ¶
type PostgresScapperConf = dwhexecpostgres.PostgresConf
type PostgresScrapper ¶
type PostgresScrapper struct {
// contains filtered or unexported fields
}
func NewPostgresScrapper ¶
func NewPostgresScrapper(ctx context.Context, conf *PostgresScapperConf) (*PostgresScrapper, error)
func (*PostgresScrapper) Close ¶
func (e *PostgresScrapper) Close() error
func (*PostgresScrapper) Dialect ¶
func (e *PostgresScrapper) Dialect() string
func (*PostgresScrapper) IsPermissionError ¶ added in v0.1.1
func (e *PostgresScrapper) IsPermissionError(err error) bool
func (*PostgresScrapper) QueryCatalog ¶
func (e *PostgresScrapper) QueryCatalog(ctx context.Context) ([]*scrapper.CatalogColumnRow, error)
func (*PostgresScrapper) QueryCustomMetrics ¶
func (e *PostgresScrapper) QueryCustomMetrics(ctx context.Context, sql string, args ...any) ([]*scrapper.CustomMetricsRow, error)
func (*PostgresScrapper) QueryDatabases ¶
func (e *PostgresScrapper) QueryDatabases(ctx context.Context) ([]*scrapper.DatabaseRow, error)
func (*PostgresScrapper) QuerySegments ¶
func (e *PostgresScrapper) QuerySegments(ctx context.Context, sql string, args ...any) ([]*scrapper.SegmentRow, error)
func (*PostgresScrapper) QuerySqlDefinitions ¶
func (e *PostgresScrapper) QuerySqlDefinitions(ctx context.Context) ([]*scrapper.SqlDefinitionRow, error)
func (*PostgresScrapper) QueryTableMetrics ¶
func (e *PostgresScrapper) QueryTableMetrics(ctx context.Context, lastMetricsFetchTime time.Time) ([]*scrapper.TableMetricsRow, error)
func (*PostgresScrapper) QueryTables ¶
func (*PostgresScrapper) ValidateConfiguration ¶
func (e *PostgresScrapper) ValidateConfiguration(ctx context.Context) ([]string, error)
Click to show internal directories.
Click to hide internal directories.