bigquery

package
v0.0.0-rc4 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2024 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
const ProviderType = abstract.ProviderType("bigquery")

Variables

This section is empty.

Functions

func New

Types

type BigQueryDestination

type BigQueryDestination struct {
	ProjectID     string
	Dataset       string
	Creds         string
	CleanupPolicy server.CleanupType
}

func (*BigQueryDestination) CleanupMode

func (b *BigQueryDestination) CleanupMode() server.CleanupType

func (*BigQueryDestination) GetProviderType

func (b *BigQueryDestination) GetProviderType() abstract.ProviderType

func (*BigQueryDestination) IsDestination

func (b *BigQueryDestination) IsDestination()

func (*BigQueryDestination) Validate

func (b *BigQueryDestination) Validate() error

func (*BigQueryDestination) WithDefaults

func (b *BigQueryDestination) WithDefaults()

type ChangeItem

type ChangeItem struct {
	abstract.ChangeItem
}

func (ChangeItem) Save

func (c ChangeItem) Save() (row map[string]bigquery.Value, insertID string, err error)

type Provider

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

func (Provider) Sink

func (p Provider) Sink(config middlewares.Config) (abstract.Sinker, error)

func (Provider) Type

func (p Provider) Type() abstract.ProviderType

type Sinker

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

func NewSink

func NewSink(cfg *BigQueryDestination, lgr log.Logger, registry metrics.Registry) (*Sinker, error)

func (Sinker) Close

func (s Sinker) Close() error

func (Sinker) Push

func (s Sinker) Push(items []abstract.ChangeItem) error

Jump to

Keyboard shortcuts

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