query

package
v0.0.0-...-da7c477 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetOptions

func SetOptions(u URLParams, opts ...googleapi.CallOption)

SetOptions sets the URL params and any additional call options.

Types

type ErrorProto

type ErrorProto bigquery.ErrorProto

func (*ErrorProto) NKeys

func (p *ErrorProto) NKeys() int

NKeys returns the number of keys to unmarshal

func (*ErrorProto) UnmarshalJSONObject

func (p *ErrorProto) UnmarshalJSONObject(dec *gojay.Decoder, k string) error

UnmarshalJSONObject implements gojay's UnmarshalerJSONObject

type ErrorProtosPtr

type ErrorProtosPtr []*ErrorProto

func (ErrorProtosPtr) IsNil

func (s ErrorProtosPtr) IsNil() bool

func (*ErrorProtosPtr) UnmarshalJSONArray

func (s *ErrorProtosPtr) UnmarshalJSONArray(dec *gojay.Decoder) error

type JobReference

type JobReference bigquery.JobReference

func (*JobReference) NKeys

func (r *JobReference) NKeys() int

NKeys returns the number of keys to unmarshal

func (*JobReference) UnmarshalJSONObject

func (r *JobReference) UnmarshalJSONObject(dec *gojay.Decoder, k string) error

UnmarshalJSONObject implements gojay's UnmarshalerJSONObject

type Response

type Response struct {
	bigquery.QueryResponse
	// contains filtered or unexported fields
}

Response represents query call response

func (*Response) NKeys

func (r *Response) NKeys() int

NKeys returns the number of keys to unmarshal

func (*Response) UnmarshalJSONObject

func (r *Response) UnmarshalJSONObject(dec *gojay.Decoder, k string) error

UnmarshalJSONObject implements gojay's UnmarshalerJSONObject

type ResultsCall

type ResultsCall struct {
	// contains filtered or unexported fields
}

ResultsCall represents query results call

func NewResultsCall

func NewResultsCall(call *bigquery.JobsGetQueryResultsCall, session *internal.Session) *ResultsCall

NewResultsCall creates a new query result call

func (*ResultsCall) Context

func (c *ResultsCall) Context(ctx context.Context)

Context sets a context

func (*ResultsCall) Do

func (c *ResultsCall) Do(opts ...googleapi.CallOption) (*Response, error)

Do runs a call

type Strings

type Strings []string

func (*Strings) UnmarshalJSONArray

func (s *Strings) UnmarshalJSONArray(dec *gojay.Decoder) error

type TableCell

type TableCell bigquery.TableCell

func (*TableCell) NKeys

func (c *TableCell) NKeys() int

NKeys returns the number of keys to unmarshal

func (*TableCell) UnmarshalJSONObject

func (c *TableCell) UnmarshalJSONObject(dec *gojay.Decoder, k string) error

UnmarshalJSONObject implements gojay's UnmarshalerJSONObject

type TableCellsPtr

type TableCellsPtr []*TableCell

func (TableCellsPtr) IsNil

func (s TableCellsPtr) IsNil() bool

func (*TableCellsPtr) UnmarshalJSONArray

func (s *TableCellsPtr) UnmarshalJSONArray(dec *gojay.Decoder) error

type TableFieldSchema

type TableFieldSchema bigquery.TableFieldSchema

func (*TableFieldSchema) NKeys

func (s *TableFieldSchema) NKeys() int

NKeys returns the number of keys to unmarshal

func (*TableFieldSchema) UnmarshalJSONObject

func (s *TableFieldSchema) UnmarshalJSONObject(dec *gojay.Decoder, k string) error

UnmarshalJSONObject implements gojay's UnmarshalerJSONObject

type TableFieldSchemaCategories

type TableFieldSchemaCategories bigquery.TableFieldSchemaCategories

func (*TableFieldSchemaCategories) NKeys

func (c *TableFieldSchemaCategories) NKeys() int

NKeys returns the number of keys to unmarshal

func (*TableFieldSchemaCategories) UnmarshalJSONObject

func (c *TableFieldSchemaCategories) UnmarshalJSONObject(dec *gojay.Decoder, k string) error

UnmarshalJSONObject implements gojay's UnmarshalerJSONObject

type TableFieldSchemaPolicyTags

type TableFieldSchemaPolicyTags bigquery.TableFieldSchemaPolicyTags

func (*TableFieldSchemaPolicyTags) NKeys

func (t *TableFieldSchemaPolicyTags) NKeys() int

NKeys returns the number of keys to unmarshal

func (*TableFieldSchemaPolicyTags) UnmarshalJSONObject

func (t *TableFieldSchemaPolicyTags) UnmarshalJSONObject(dec *gojay.Decoder, k string) error

UnmarshalJSONObject implements gojay's UnmarshalerJSONObject

type TableFieldSchemasPtr

type TableFieldSchemasPtr []*TableFieldSchema

func (TableFieldSchemasPtr) IsNil

func (s TableFieldSchemasPtr) IsNil() bool

func (*TableFieldSchemasPtr) UnmarshalJSONArray

func (s *TableFieldSchemasPtr) UnmarshalJSONArray(dec *gojay.Decoder) error

type TableRow

type TableRow bigquery.TableRow

func (*TableRow) NKeys

func (r *TableRow) NKeys() int

NKeys returns the number of keys to unmarshal

func (*TableRow) UnmarshalJSONObject

func (r *TableRow) UnmarshalJSONObject(dec *gojay.Decoder, k string) error

UnmarshalJSONObject implements gojay's UnmarshalerJSONObject

type TableRowsPtr

type TableRowsPtr struct {
	// contains filtered or unexported fields
}

func (*TableRowsPtr) NKeys

func (s *TableRowsPtr) NKeys() int

func (*TableRowsPtr) UnmarshalJSONArray

func (s *TableRowsPtr) UnmarshalJSONArray(dec *gojay.Decoder) error

func (*TableRowsPtr) UnmarshalJSONObject

func (s *TableRowsPtr) UnmarshalJSONObject(dec *gojay.Decoder, k string) error

type TableSchema

type TableSchema bigquery.TableSchema

func (*TableSchema) NKeys

func (s *TableSchema) NKeys() int

NKeys returns the number of keys to unmarshal

func (*TableSchema) UnmarshalJSONObject

func (s *TableSchema) UnmarshalJSONObject(dec *gojay.Decoder, k string) error

UnmarshalJSONObject implements gojay's UnmarshalerJSONObject

type URLParams

type URLParams map[string][]string

URLParams is a simplified replacement for url.Values that safely builds up URL parameters for encoding.

func (URLParams) Encode

func (u URLParams) Encode() string

Encode encodes the values into “URL encoded” form ("bar=baz&foo=quux") sorted by key.

func (URLParams) Get

func (u URLParams) Get(key string) string

Get returns the first value for the given key, or "".

func (URLParams) Set

func (u URLParams) Set(key, value string)

Set sets the key to value. It replaces any existing values.

func (URLParams) SetMulti

func (u URLParams) SetMulti(key string, values []string)

SetMulti sets the key to an array of values. It replaces any existing values. Note that values must not be modified after calling SetMulti so the caller is responsible for making a copy if necessary.

Jump to

Keyboard shortcuts

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