reject

package
v0.13.2 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package reject provides a Scrapper decorator that drops rows whose identity fields (the parts forming an object's fully-qualified name) contain NUL bytes or invalid UTF-8.

Unlike sanitize, which repairs bad strings in place, reject discards the row entirely — because a sanitised identifier might collide with another object or fail to resolve against the warehouse. For non-identity content (descriptions, SQL, tag values), compose with sanitize:

sanitize.NewSanitizingScrapper(reject.NewRejectingScrapper(inner))

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RejectingScrapper

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

func NewRejectingScrapper

func NewRejectingScrapper(inner scrapper.Scrapper) *RejectingScrapper

func (*RejectingScrapper) Capabilities

func (s *RejectingScrapper) Capabilities() scrapper.Capabilities

func (*RejectingScrapper) Close

func (s *RejectingScrapper) Close() error

func (*RejectingScrapper) DialectType

func (s *RejectingScrapper) DialectType() string

func (*RejectingScrapper) IsPermissionError

func (s *RejectingScrapper) IsPermissionError(err error) bool

func (*RejectingScrapper) QueryCatalog

func (s *RejectingScrapper) QueryCatalog(ctx context.Context) ([]*scrapper.CatalogColumnRow, error)

func (*RejectingScrapper) QueryCustomMetrics

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

func (*RejectingScrapper) QueryDatabases

func (s *RejectingScrapper) QueryDatabases(ctx context.Context) ([]*scrapper.DatabaseRow, error)

func (*RejectingScrapper) QuerySegments

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

func (*RejectingScrapper) QueryShape

func (s *RejectingScrapper) QueryShape(ctx context.Context, sql string) ([]*scrapper.QueryShapeColumn, error)

func (*RejectingScrapper) QuerySqlDefinitions

func (s *RejectingScrapper) QuerySqlDefinitions(ctx context.Context) ([]*scrapper.SqlDefinitionRow, error)

func (*RejectingScrapper) QueryTableConstraints

func (s *RejectingScrapper) QueryTableConstraints(ctx context.Context) ([]*scrapper.TableConstraintRow, error)

func (*RejectingScrapper) QueryTableMetrics

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

func (*RejectingScrapper) QueryTables

func (*RejectingScrapper) SqlDialect

func (s *RejectingScrapper) SqlDialect() sqldialect.Dialect

func (*RejectingScrapper) ValidateConfiguration

func (s *RejectingScrapper) ValidateConfiguration(ctx context.Context) (warnings []string, err error)

Jump to

Keyboard shortcuts

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