bigquery

package
v0.0.0-...-339fc89 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	CheckIfDatasetExists(ctx context.Context, dataset string) (exists bool)
	CheckIfTableExists(ctx context.Context, dataset, table string) (exists bool)
	CreateTable(ctx context.Context, dataset, table string, typeForSchema interface{}, partitionField string, waitReady bool) (err error)
	UpdateTableSchema(ctx context.Context, dataset, table string, typeForSchema interface{}) (err error)
	DeleteTable(ctx context.Context, dataset, table string) (err error)
	InsertMeasurement(ctx context.Context, dataset, table string, measurement contractsv1.Measurement) (err error)
	InitBigqueryTable(ctx context.Context, dataset, table string) (err error)
}

Client is the interface for connecting to bigquery

func NewClient

func NewClient(ctx context.Context, projectID string, enable bool) (Client, error)

NewClient returns new bigquery.Client

Jump to

Keyboard shortcuts

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