bqclient

package
v0.0.0-...-534e82c Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2016 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

package bigquery contains functions to

  1. run bigquery jobs such as query to table and export table to google storage.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BQClient

type BQClient struct {
	ProjectId string
	DatasetId string

	JobStatusPollingInterval time.Duration
	JobStatusPollingMaxTries int
	// contains filtered or unexported fields
}

func NewBQClient

func NewBQClient() (*BQClient, error)

func (*BQClient) JobExtract

func (c *BQClient) JobExtract(table, gspath string) *bigquery.Job

func (*BQClient) JobFromFile

func (c *BQClient) JobFromFile(file string) (*bigquery.Job, error)

parseJobFile generate a bigQuery job by parsing a yaml file.

func (*BQClient) JobQuery

func (c *BQClient) JobQuery(query, dstTable string) *bigquery.Job

func (*BQClient) RunJob

func (c *BQClient) RunJob(job *bigquery.Job) error

RunJob runs a bq Job synchronously.

func (*BQClient) RunJobsInFolder

func (c *BQClient) RunJobsInFolder(pattern string) error

RunJobsInFolder scan jobs file in a folder and run them sequentially. Files are sorted by filename. Subdirectories are not scanned.

func (*BQClient) RunSequentialJobs

func (c *BQClient) RunSequentialJobs(jobs []*bigquery.Job) error

run a series of jobs sequentially and synchronously

Jump to

Keyboard shortcuts

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