travisjeffery / go-bqloadbatcher

A BigQuery client to batch and load data with Go (Golang).

Home Page:http://twitter.com/travisjeffery

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

go-bqloadbatcher

A BigQuery client to batch and load data with Go (Golang).

Example

loader, err := bqloadbatcher.New(&Options{
	ProjectID:     os.Getenv("PROJECT_ID"),
	Email:         os.Getenv("EMAIL"),
	PEM:           []byte(os.Getenv("PEM")),
    BatchDir:      "/tmp",
    BatchDuration: time.Minute * 5,
})
log.Check(err)

loader.Input() <- row{
    DatasetID: "yout-dataset,"
    TableID: "your-table",
    Data: yourJSON,
}

GoDocs.

Author

Travis Jeffery

License

MIT

About

A BigQuery client to batch and load data with Go (Golang).

http://twitter.com/travisjeffery


Languages

Language:Go 100.0%