cmd

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: May 22, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute()

Execute runs the command line interface.

Types

type BigQueryResult added in v0.0.2

type BigQueryResult struct {
	Columns []string                 `json:"columns"`
	Rows    []map[string]interface{} `json:"rows"`
	Time    int64                    `json:"time"`
	Error   string                   `json:"error"`
}

func (BigQueryResult) GetColumns added in v0.0.2

func (b BigQueryResult) GetColumns() []string

func (BigQueryResult) GetError added in v0.0.2

func (b BigQueryResult) GetError() string

func (BigQueryResult) GetRows added in v0.0.2

func (b BigQueryResult) GetRows() interface{}

func (BigQueryResult) GetTime added in v0.0.2

func (b BigQueryResult) GetTime() float64

type QueryResult

type QueryResult struct {
	Columns []string        `json:"columns"`
	Rows    [][]interface{} `json:"rows"`
	Time    float64         `json:"time"`
	Error   string          `json:"error"`
}

func (QueryResult) GetColumns added in v0.0.2

func (q QueryResult) GetColumns() []string

func (QueryResult) GetError added in v0.0.2

func (q QueryResult) GetError() string

func (QueryResult) GetRows added in v0.0.2

func (q QueryResult) GetRows() interface{}

func (QueryResult) GetTime added in v0.0.2

func (q QueryResult) GetTime() float64

type QueryResultInterface added in v0.0.2

type QueryResultInterface interface {
	GetColumns() []string
	GetRows() interface{}
	GetTime() float64
	GetError() string
}

Jump to

Keyboard shortcuts

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