Help us shape the future of Go! Take the 2026 Go Developer Survey

types

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GetQueryResultsResponse

type GetQueryResultsResponse struct {
	JobReference *bigqueryv2.JobReference `json:"jobReference"`
	Schema       *bigqueryv2.TableSchema  `json:"schema"`
	Rows         []*TableRow              `json:"rows"`
	TotalRows    uint64                   `json:"totalRows,string"`
	JobComplete  bool                     `json:"jobComplete"`
	PageToken    string                   `json:"pageToken,omitempty"`
	TotalBytes   uint64                   `json:"-"`
}

type QueryResponse

type QueryResponse struct {
	JobReference   *bigqueryv2.JobReference     `json:"jobReference"`
	Schema         *bigqueryv2.TableSchema      `json:"schema"`
	Rows           []*TableRow                  `json:"rows"`
	TotalRows      uint64                       `json:"totalRows,string"`
	JobComplete    bool                         `json:"jobComplete"`
	TotalBytes     int64                        `json:"-"`
	ChangedCatalog *googlesqlite.ChangedCatalog `json:"-"`
}

type TableCell

type TableCell struct {
	V     interface{} `json:"v"`
	Bytes int64       `json:"-"`
	Name  string      `json:"-"`
}

Redefines the TableCell type to return null explicitly because TableCell for bigqueryv2 is omitted if V is nil,

func (*TableCell) AVROValue added in v0.1.23

func (c *TableCell) AVROValue(namespace string, schema *types.AVROFieldSchema) (interface{}, error)

func (*TableCell) AppendValueToARROWBuilder added in v0.1.23

func (c *TableCell) AppendValueToARROWBuilder(builder array.Builder) error

func (*TableCell) Data added in v0.2.7

func (c *TableCell) Data() (interface{}, error)

type TableDataList added in v0.1.5

type TableDataList struct {
	Rows      []*TableRow `json:"rows"`
	TotalRows uint64      `json:"totalRows,string"`
}

type TableRow

type TableRow struct {
	F []*TableCell `json:"f,omitempty"`
}

func Format added in v0.1.18

func Format(schema *bigqueryv2.TableSchema, rows []*TableRow, useInt64Timestamp bool) []*TableRow

Format converts TIMESTAMP result cells from the raw canonical timestamp produced by the SQL backend into the representation the BigQuery REST API returns: int64 microseconds-since-epoch when useInt64Timestamp is set, and otherwise a float seconds-since-epoch string. Every official client decodes a TIMESTAMP value as one of those two numeric forms, never as a formatted datetime string.

func (*TableRow) AVROValue added in v0.1.23

func (r *TableRow) AVROValue(namespace string, fields []*types.AVROFieldSchema) (map[string]interface{}, error)

func (*TableRow) AppendValueToARROWBuilder added in v0.1.23

func (r *TableRow) AppendValueToARROWBuilder(builder *array.RecordBuilder) error

func (*TableRow) Data added in v0.2.7

func (r *TableRow) Data() (map[string]interface{}, error)

Jump to

Keyboard shortcuts

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