types

package
v0.4.4 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2023 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"`
	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 *zetasqlite.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(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

func (*TableRow) AVROValue added in v0.1.23

func (r *TableRow) AVROValue(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