bigquery

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2021 License: MIT Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BigQueryService

type BigQueryService struct {
	BQ *bigquery.Client
}

func NewBigQueryService

func NewBigQueryService(bq *bigquery.Client) (*BigQueryService, error)

func (*BigQueryService) Close

func (s *BigQueryService) Close() error

func (*BigQueryService) Insert

func (s *BigQueryService) Insert(ctx context.Context, dataset *bigquery.Dataset, table string, sss []*bigquery.StructSaver) error

InsertStructSaverToBigQuery is StructSaverをBigQueryにStreamingInsertでInsertする InsertはAtomicには行われない。 Error時は StreamingInsertErrors を返す。

type StreamingInsertError

type StreamingInsertError struct {
	InsertID string
	Err      error
}

func (*StreamingInsertError) Error

func (e *StreamingInsertError) Error() string

type StreamingInsertErrors

type StreamingInsertErrors struct {
	Errors []*StreamingInsertError
	// contains filtered or unexported fields
}

func (*StreamingInsertErrors) Append

func (*StreamingInsertErrors) Error

func (e *StreamingInsertErrors) Error() string

func (*StreamingInsertErrors) ErrorOrNil

func (e *StreamingInsertErrors) ErrorOrNil() error

Jump to

Keyboard shortcuts

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