bigquery

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2016 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const StateDone = "DONE"

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func NewClient

func NewClient() (*Client, error)

func (*Client) DatasetExists

func (c *Client) DatasetExists(ref *DatasetReference) (bool, error)

func (*Client) EnsureTableExists

func (c *Client) EnsureTableExists(ref *TableReference, partition bool) error

func (*Client) LoadTable

func (c *Client) LoadTable(spec *LoadSpec) error

type DatasetReference

type DatasetReference struct {
	ProjectID string
	DatasetID string
}

type LoadCompleted

type LoadCompleted struct {
	Error error
}

type LoadSpec

type LoadSpec struct {
	TableReference *TableReference
	BucketName     string
	ObjectPrefix   string
	Overwrite      bool
	Schema         *bq.TableSchema
	Partitioned    bool
}

type TableReference

type TableReference struct {
	ProjectID    string
	DatasetID    string
	TableID      string
	DayPartition *time.Time
}

func NewTableReference

func NewTableReference(projectId, dataset, table string) *TableReference

func (*TableReference) DatasetReference

func (ref *TableReference) DatasetReference() *DatasetReference

func (*TableReference) String

func (ref *TableReference) String() string

func (*TableReference) ToGoogleReference

func (ref *TableReference) ToGoogleReference() *bq.TableReference

func (*TableReference) ToUndecoratedGoogleReference

func (ref *TableReference) ToUndecoratedGoogleReference() *bq.TableReference

Jump to

Keyboard shortcuts

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