Documentation ¶
Index ¶
- Variables
- type FqlCompiler
- func (c *FqlCompiler) Compile(query string) (program *runtime.Program, err error)
- func (c *FqlCompiler) MustCompile(query string) *runtime.Program
- func (c *FqlCompiler) RegisterFunction(name string, fun core.Function) error
- func (c *FqlCompiler) RegisterFunctions(funcs map[string]core.Function) error
- func (c *FqlCompiler) RegisteredFunctions() (funcs []string)
- func (c *FqlCompiler) 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 {
// contains filtered or unexported fields
}
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
func (*FqlCompiler) RegisterFunction ¶
func (c *FqlCompiler) RegisterFunction(name string, fun core.Function) error
func (*FqlCompiler) RegisterFunctions ¶
func (c *FqlCompiler) RegisterFunctions(funcs map[string]core.Function) error
func (*FqlCompiler) RegisteredFunctions ¶ added in v0.7.0
func (c *FqlCompiler) RegisteredFunctions() (funcs []string)
func (*FqlCompiler) RemoveFunction ¶ added in v0.5.0
func (c *FqlCompiler) RemoveFunction(name string)
Click to show internal directories.
Click to hide internal directories.