bigquery

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AcceptedValuesCheck added in v0.9.0

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

func (*AcceptedValuesCheck) Check added in v0.9.0

type BasicOperator

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

func NewBasicOperator

func NewBasicOperator(client *DB, extractor queryExtractor, materializer materializer) *BasicOperator

func NewBasicOperatorFromGlobals

func NewBasicOperatorFromGlobals(extractor queryExtractor, materializer materializer) (*BasicOperator, error)

func (BasicOperator) Run added in v0.9.0

func (BasicOperator) RunTask

type ColumnCheckOperator added in v0.9.0

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

func NewColumnCheckOperatorFromGlobals added in v0.9.0

func NewColumnCheckOperatorFromGlobals() (*ColumnCheckOperator, error)

func (ColumnCheckOperator) Run added in v0.9.0

type Config

type Config struct {
	ProjectID           string `envconfig:"BIGQUERY_PROJECT"`
	CredentialsFilePath string `envconfig:"BIGQUERY_CREDENTIALS_FILE"`
	Location            string `envconfig:"BIGQUERY_LOCATION"`
}

func LoadConfigFromEnv

func LoadConfigFromEnv() (*Config, error)

func (Config) IsValid

func (c Config) IsValid() bool

type DB

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

func NewDB

func NewDB(c *Config) (*DB, error)

func (DB) IsValid

func (d DB) IsValid(ctx context.Context, query *query.Query) (bool, error)

func (DB) RunQueryWithoutResult

func (d DB) RunQueryWithoutResult(ctx context.Context, query *query.Query) error

func (DB) Select added in v0.9.0

func (d DB) Select(ctx context.Context, query *query.Query) ([][]interface{}, error)

type Materializer

type Materializer struct{}

func (Materializer) Render

func (m Materializer) Render(task *pipeline.Asset, query string) (string, error)

type NotNullCheck added in v0.9.0

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

func (*NotNullCheck) Check added in v0.9.0

type PositiveCheck added in v0.9.0

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

func (*PositiveCheck) Check added in v0.9.0

type UniqueCheck added in v0.9.0

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

func (*UniqueCheck) Check added in v0.9.0

Jump to

Keyboard shortcuts

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