postgres

package
v0.4.21 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 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 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) DialectType added in v0.1.8

func (e *PostgresScrapper) DialectType() 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 (e *PostgresScrapper) QueryTables(ctx context.Context) ([]*scrapper.TableRow, error)

func (*PostgresScrapper) SqlDialect added in v0.1.8

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

func (*PostgresScrapper) ValidateConfiguration

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

Jump to

Keyboard shortcuts

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