Documentation ¶
Index ¶
- Variables
- type FqlCompiler
- type NamespaceContainer
- func (nc *NamespaceContainer) Namespace(name string) core.Namespace
- func (nc *NamespaceContainer) RegisterFunction(name string, fun core.Function) error
- func (nc *NamespaceContainer) RegisterFunctions(funcs core.Functions) error
- func (nc *NamespaceContainer) RegisteredFunctions() []string
- func (nc *NamespaceContainer) RemoveFunction(name string)
- type Option
- type Options
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrEmptyQuery = errors.New("empty query") ErrNotImplemented = errors.New("not implemented") ErrVariableNotFound = errors.New("variable not found") ErrVariableNotUnique = errors.New("variable is already defined") ErrInvalidToken = errors.New("invalid token") ErrInvalidDataSource = errors.New("invalid data source") )
Functions ¶
This section is empty.
Types ¶
type FqlCompiler ¶
type FqlCompiler struct {
*NamespaceContainer
}
func New ¶
func New(setters ...Option) *FqlCompiler
func (*FqlCompiler) Compile ¶
func (c *FqlCompiler) Compile(query string) (program *runtime.Program, err error)
func (*FqlCompiler) MustCompile ¶
func (c *FqlCompiler) MustCompile(query string) *runtime.Program
type NamespaceContainer ¶ added in v0.8.0
type NamespaceContainer struct {
// contains filtered or unexported fields
}
func (*NamespaceContainer) Namespace ¶ added in v0.8.0
func (nc *NamespaceContainer) Namespace(name string) core.Namespace
func (*NamespaceContainer) RegisterFunction ¶ added in v0.8.0
func (nc *NamespaceContainer) RegisterFunction(name string, fun core.Function) error
func (*NamespaceContainer) RegisterFunctions ¶ added in v0.8.0
func (nc *NamespaceContainer) RegisterFunctions(funcs core.Functions) error
func (*NamespaceContainer) RegisteredFunctions ¶ added in v0.8.0
func (nc *NamespaceContainer) RegisteredFunctions() []string
func (*NamespaceContainer) RemoveFunction ¶ added in v0.8.0
func (nc *NamespaceContainer) RemoveFunction(name string)
Click to show internal directories.
Click to hide internal directories.