bigquery

package
v0.11.1 Latest Latest
Warning

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

Go to latest
Published: May 8, 2023 License: Apache-2.0 Imports: 13 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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(conn connectionFetcher, extractor queryExtractor, materializer materializer) *BasicOperator

func (BasicOperator) Run added in v0.9.0

func (BasicOperator) RunTask

type Client added in v0.10.0

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

func NewDB

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

func (*Client) IsValid added in v0.10.0

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

func (*Client) RunQueryWithoutResult added in v0.10.0

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

func (*Client) Select added in v0.10.0

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

type ColumnCheckOperator added in v0.9.0

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

func NewColumnCheckOperator added in v0.10.0

func NewColumnCheckOperator(manager connectionFetcher) (*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"`
	CredentialsJSON     string
	Credentials         *google.Credentials
	Location            string `envconfig:"BIGQUERY_LOCATION"`
}

func (Config) IsValid

func (c Config) IsValid() bool

type DB

type DB interface {
	Querier
	Selector
}

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 Querier added in v0.10.0

type Querier interface {
	RunQueryWithoutResult(ctx context.Context, query *query.Query) error
}

type Selector added in v0.10.0

type Selector interface {
	Select(ctx context.Context, query *query.Query) ([][]interface{}, error)
}

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