bigquery

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2018 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// TagName is used for struct tag which defining table column name
	TagName = "bigquery"
)

Functions

This section is empty.

Types

type Dataset

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

Dataset repesents bigquery dataset.

func NewDataset

func NewDataset(conf config.Config, projectID, datasetID string) (*Dataset, error)

NewDataset returns initialized Dataset

func (*Dataset) CreateTable

func (ds *Dataset) CreateTable(tableID string, schemaStruct interface{}) error

CreateTable creates the table with schema defined from given struct

func (*Dataset) Errorf

func (ds *Dataset) Errorf(format string, v ...interface{})

Errorf logging error information.

func (*Dataset) InsertAll

func (ds *Dataset) InsertAll(tableID string, data interface{}) error

InsertAll appends all of map data by using InsertAll api

Jump to

Keyboard shortcuts

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