Documentation
¶
Index ¶
- Variables
- func ContextWithRawResultsFlag(ctx context.Context) context.Context
- func IsRawResultsQuery(ctx context.Context, field *ast.Field) bool
- type Catalog
- type NodeBeforeExecFunc
- type NodeFunc
- type QueryPlan
- type QueryPlanNode
- func (n *QueryPlanNode) Compile(parent *QueryPlanNode, res *Result) (*Result, error)
- func (n *QueryPlanNode) Engine(name string) (engines.Engine, error)
- func (n *QueryPlanNode) Querier() types.Querier
- func (n *QueryPlanNode) Schema() *ast.Schema
- func (n *QueryPlanNode) TypeDefs() compiler.DefinitionsSource
- type QueryPlanNodes
- type Result
- type Results
- type Service
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrInternalPlanner = errors.New("internal planner error")
)
Functions ¶
func ContextWithRawResultsFlag ¶ added in v0.1.5
Types ¶
type NodeBeforeExecFunc ¶
type QueryPlan ¶
type QueryPlan struct { Query *ast.Field RootNode *QueryPlanNode CompiledQuery string Params []any }
func (*QueryPlan) ExecuteStream ¶ added in v0.1.20
type QueryPlanNode ¶
type QueryPlanNode struct { Name string Query *ast.Field Nodes QueryPlanNodes Comment string CollectFunc NodeFunc BeforeParamsLen int AddedParams int Parent *QueryPlanNode Before NodeBeforeExecFunc // contains filtered or unexported fields }
QueryPlan represents the execution plan for a query
func (*QueryPlanNode) Compile ¶
func (n *QueryPlanNode) Compile(parent *QueryPlanNode, res *Result) (*Result, error)
func (*QueryPlanNode) Querier ¶ added in v0.1.28
func (n *QueryPlanNode) Querier() types.Querier
func (*QueryPlanNode) Schema ¶
func (n *QueryPlanNode) Schema() *ast.Schema
func (*QueryPlanNode) TypeDefs ¶
func (n *QueryPlanNode) TypeDefs() compiler.DefinitionsSource
type QueryPlanNodes ¶
type QueryPlanNodes []*QueryPlanNode
func (*QueryPlanNodes) Add ¶
func (n *QueryPlanNodes) Add(node *QueryPlanNode)
func (*QueryPlanNodes) ForName ¶
func (n *QueryPlanNodes) ForName(name string) *QueryPlanNode
Click to show internal directories.
Click to hide internal directories.