query

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2015 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(c *cli.Context)

Run is a facade method of the query command

Types

type Args

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

Args represents Arguments of the query command

type Bq

type Bq struct{}

Bq is an Executor that run the bq command.

func NewBq added in v0.0.3

func NewBq() *Bq

NewBq initializes the Bq struct.

func (*Bq) GetHumanReadbleInfo added in v0.0.3

func (b *Bq) GetHumanReadbleInfo(result string) (info string)

GetHumanReadbleInfo changes the raw result to human readable one.

func (*Bq) Query

func (b *Bq) Query(statement string) (out string)

Query runs the bq query command.

type CustomFunc

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

CustomFunc handles Custom Functions that are applied to the statement

func NewCustomFunc added in v0.0.3

func NewCustomFunc(args Args) *CustomFunc

NewCustomFunc initializes the CustomFunc struct.

func (*CustomFunc) Apply

func (c *CustomFunc) Apply(statement string) string

Apply is a facade method that runs custom functions

type Decorator

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

Decorator transforms the no-decorated statement into the decorated one

func NewDecorator added in v0.0.3

func NewDecorator(statement string, args Args) *Decorator

NewDecorator initializes the Decorator struct.

func (*Decorator) Apply

func (d *Decorator) Apply() (decorated string, err error)

Apply is a facade method that transforms the no-decorated statement into the decorated one

func (*Decorator) Revert

func (d *Decorator) Revert() (raw string)

Revert transforms the statement with @ into the one without @

type Query

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

Query is an Implementation that decorates the statement and run the bq query

Jump to

Keyboard shortcuts

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