mql

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: May 23, 2023 License: Apache-2.0 Imports: 12 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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(ctx context.Context, 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) Execute

func (s *Session) Execute(ctx context.Context, input string, opt query.Options) (query.Iterator, error)

Jump to

Keyboard shortcuts

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