Documentation
¶
Overview ¶
Package cirql is the public entry point to the cirql JSON pipeline language: Parse compiles a query string into a Pipeline, and Pipeline.Run executes it over a decoded JSON value. The language, evaluator, and stages live in the sub-packages; this package wires them together.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(config) config
Option configures Parse: it returns the config with the option applied.
type Pipeline ¶
type Pipeline struct {
// contains filtered or unexported fields
}
Pipeline is a compiled cirql query ready to run.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package ast defines the cirql abstract syntax tree: the typed pipeline, stages, and expressions a parsed query produces.
|
Package ast defines the cirql abstract syntax tree: the typed pipeline, stages, and expressions a parsed query produces. |
|
Package eval evaluates cirql expressions against an environment: the current object (for field access), the variable bindings (for $var), and an injected clock (for now()).
|
Package eval evaluates cirql expressions against an environment: the current object (for field access), the variable bindings (for $var), and an injected clock (for now()). |
|
Package pipeline holds the cirql result-set model and the sequential stage runner.
|
Package pipeline holds the cirql result-set model and the sequential stage runner. |
|
pkg
|
|
|
dialect/cirql
Package cirql is the covered seam over the generated ANTLR parser: it turns a cirql query string into a typed ast.Pipeline and any syntax error into the ErrParse sentinel.
|
Package cirql is the covered seam over the generated ANTLR parser: it turns a cirql query string into a typed ast.Pipeline and any syntax error into the ErrParse sentinel. |
|
src
|
|
|
Package stage implements the cirql transform stages and Build, which maps a parsed stage node to its executor.
|
Package stage implements the cirql transform stages and Build, which maps a parsed stage node to its executor. |
Click to show internal directories.
Click to hide internal directories.