query

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2015 License: MIT Imports: 6 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 CreateBq

func CreateBq() *Bq

CreateBq initializes the Bq struct.

func (*Bq) Query

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

Query runs the bq query command.

type CustomFunc

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

CustomFunc handles Custom Functions that applies to the statement

func CreateCustomFunc

func CreateCustomFunc(args Args) *CustomFunc

CreateCustomFunc 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 CreateDecorator

func CreateDecorator(statement string, args Args) *Decorator

CreateDecorator 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