Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrInternalPlanner = errors.New("internal planner error")
)
Functions ¶
This section is empty.
Types ¶
type NodeBeforeExecFunc ¶
type QueryPlan ¶
type QueryPlan struct { Query *ast.Field RootNode *QueryPlanNode CompiledQuery string Params []any }
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) 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.