mql

package
v0.7.5 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2018 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const Name = "mql"

Variables

This section is empty.

Functions

This section is empty.

Types

type Path

type Path string

func NewPath

func NewPath() Path

func (Path) DisplayString

func (p Path) DisplayString() string

func (Path) Follow

func (p Path) Follow(s string) Path

func (Path) ToResultPathFromMap

func (p Path) ToResultPathFromMap(resultMap map[Path]string) ResultPath

type Query

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

func NewQuery

func NewQuery(ses *Session) *Query

func (*Query) BuildIteratorTree

func (q *Query) BuildIteratorTree(query interface{})

type ResultPath

type ResultPath string

func NewResultPath

func NewResultPath() ResultPath

func (ResultPath) AppendValue

func (p ResultPath) AppendValue(value string) ResultPath

func (ResultPath) FollowPath

func (p ResultPath) FollowPath(followPiece string, value string) ResultPath

type Session

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

func NewSession

func NewSession(qs graph.QuadStore) *Session

func (*Session) Clear

func (s *Session) Clear()

func (*Session) Collate

func (s *Session) Collate(result query.Result)

func (*Session) Execute

func (s *Session) Execute(ctx context.Context, input string, c chan query.Result, limit int)

func (*Session) FormatREPL

func (s *Session) FormatREPL(result query.Result) string

func (*Session) Results

func (s *Session) Results() (interface{}, error)

func (*Session) ShapeOf

func (s *Session) ShapeOf(query string) (interface{}, error)

Jump to

Keyboard shortcuts

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