bigquery

package
v1.36.1 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BufferedWrite

type BufferedWrite struct {
	sync.RWMutex
	Rows []Row
	// contains filtered or unexported fields
}

func NewBufferedWrite

func NewBufferedWrite(c int) *BufferedWrite

func (*BufferedWrite) Append

func (b *BufferedWrite) Append(r Row) error

func (*BufferedWrite) Capacity

func (b *BufferedWrite) Capacity() int

func (*BufferedWrite) Flush

func (b *BufferedWrite) Flush() []Row

func (*BufferedWrite) IsFull

func (b *BufferedWrite) IsFull() bool

func (*BufferedWrite) Length

func (b *BufferedWrite) Length() int

func (*BufferedWrite) Reset

func (b *BufferedWrite) Reset()

type Client

type Client struct {
	// Service *bigquery.Service
	Context context.Context
}

func NewClient

func NewClient(c context.Context) (*Client, error)

func (*Client) InsertNewTable

func (c *Client) InsertNewTable(projectID, datasetID, tableName string, fields Fields) error

InsertNewTable creates a new empty table for the given project and dataset with the field name/types defined in the fields map

func (*Client) InsertRows

func (c *Client) InsertRows(projectID string, datasetID string, tableID string, rowsData []Row) error

type Fields

type Fields map[string]string

type Row

type Row map[string]interface{}

Jump to

Keyboard shortcuts

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