package client
import "github.com/google/cadvisor/storage/bigquery/client"
Index ¶
- type Client
- func NewClient() (*Client, error)
- func (c *Client) Close() error
- func (c *Client) CreateDataset(datasetId string) error
- func (c *Client) CreateTable(tableId string, schema *bigquery.TableSchema) error
- func (c *Client) InsertRow(rowData map[string]interface{}) error
- func (c *Client) PrintDatasets() error
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func NewClient ¶
Creates a new client instance with an authenticated connection to bigquery.
func (*Client) Close ¶
func (*Client) CreateDataset ¶
func (*Client) CreateTable ¶
func (c *Client) CreateTable(tableId string, schema *bigquery.TableSchema) error
Create a table with provided table ID and schema. Schema is currently not updated if the table already exists.
func (*Client) InsertRow ¶
Add a row to the connected table.
func (*Client) PrintDatasets ¶
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
storage/bigquery/client/example |
- Version
- v0.30.0
- Published
- Jun 5, 2018
- Platform
- darwin/amd64
- Imports
- 7 packages
- Last checked
- 14 seconds ago –
Tools for package owners.