query

package
v0.0.0-...-5ab8b7a Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2017 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Parser

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

func NewStringParser

func NewStringParser(input string) *Parser

func (*Parser) AsAlias

func (p *Parser) AsAlias(def string, allowString, required bool) string

func (*Parser) Expression

func (p *Parser) Expression(precedence int) ast.Expr

func (*Parser) FromClause

func (p *Parser) FromClause() *ast.FromClause

func (*Parser) FromResource

func (p *Parser) FromResource() *ast.FromResource

func (*Parser) FromSubselect

func (p *Parser) FromSubselect() *ast.FromSubselect

func (*Parser) Parse

func (p *Parser) Parse() (stmt *ast.SelectStatement, err error)

func (*Parser) PathExpression

func (p *Parser) PathExpression() *ast.PathExpression

func (*Parser) SelectClause

func (p *Parser) SelectClause() *ast.SelectClause

func (*Parser) SelectExpression

func (p *Parser) SelectExpression() *ast.SelectExpression

func (*Parser) SelectStatement

func (p *Parser) SelectStatement() *ast.SelectStatement

func (*Parser) Subselect

func (p *Parser) Subselect() *ast.Subselect

func (*Parser) UnaryExpression

func (p *Parser) UnaryExpression() ast.Expr

func (*Parser) WhereClause

func (p *Parser) WhereClause() *ast.WhereClause

type ResultIterator

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

func (*ResultIterator) HasNext

func (i *ResultIterator) HasNext() bool

func (*ResultIterator) Next

func (i *ResultIterator) Next() joiner.Tuple

type Results

type Results struct {
	Headers []string
	Rows    []*Row
}

func ExecuteQuery

func ExecuteQuery(c *rest.Config, query string) (*Results, error)

type Row

type Row struct {
	Columns []interface{}
}

type SelectStatement

type SelectStatement struct {
	Fields    []string
	Namespace string
	Resource  string
}

type Session

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

type UnstructuredListIterator

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

func (*UnstructuredListIterator) HasNext

func (i *UnstructuredListIterator) HasNext() bool

func (*UnstructuredListIterator) Next

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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