bigquery

package
v0.0.0-...-c728838 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2017 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Atoi

func Atoi(s string) int

func ParseFloat64

func ParseFloat64(s string) float64

func ValidateOptions

func ValidateOptions(options *Options)

Types

type Connection

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

func NewConnection

func NewConnection(opts *Options, configPath string) *Connection

func (*Connection) CreateDataset

func (conn *Connection) CreateDataset()

func (*Connection) CreateTable

func (conn *Connection) CreateTable(fields []*bigquery.TableFieldSchema)

func (*Connection) DatasetName

func (conn *Connection) DatasetName() string

func (*Connection) InsertRows

func (conn *Connection) InsertRows(
	maps []map[string]interface{}, uniqueColumnName string)

func (*Connection) Query

func (conn *Connection) Query(sql, description string) []*bigquery.TableRow

type Options

type Options struct {
	GcloudPemPath   string
	GcloudProjectId string
	DatasetName     string
	TableName       string
	Endpoint        string
}

Jump to

Keyboard shortcuts

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