Help us shape the future of Go! Take the 2026 Go Developer Survey

bigquery

package
v0.25.0 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2026 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultSourceID = "bigquery"

Variables

This section is empty.

Functions

func NewHandler

func NewHandler(reader RowReader, columns []datasourcearrow.Column, opts ...Option) grpcdatasource.ExecuteQueryHandler

Types

type Config

type Config struct {
	ProjectID                    string
	CredentialsJSON              string
	CredentialsEnvVars           []string
	Sources                      []SourceConfig
	BilledBytesWarningThreshold  int64
	BilledBytesCriticalThreshold int64
	Logger                       *slog.Logger
}

type Executor

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

func NewExecutor

func NewExecutor(ctx context.Context, cfg Config) (*Executor, error)

func (*Executor) Close

func (e *Executor) Close() error

func (*Executor) ExecuteQuery

type Option

type Option func(*handler)

func WithBatchSize

func WithBatchSize(batchSize int) Option

func WithSourceID

func WithSourceID(sourceID string) Option

type RowEmitter

type RowEmitter func(datasourcearrow.Row) error

type RowReader

type RowReader interface {
	ReadRows(ctx context.Context, query string, emit RowEmitter) error
}

type RowReaderFunc

type RowReaderFunc func(ctx context.Context, query string, emit RowEmitter) error

func (RowReaderFunc) ReadRows

func (f RowReaderFunc) ReadRows(ctx context.Context, query string, emit RowEmitter) error

type SourceConfig

type SourceConfig struct {
	SourceID  string
	ProjectID string
	DatasetID string
	Tables    []datasource.TableConfig
}

Jump to

Keyboard shortcuts

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