bigquery

package
v1.42.40 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2026 License: MIT Imports: 3 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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