Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Location ¶
Location represents the location of a specific point in a source file, including the file name and position.
type OptimizationLevel ¶
type OptimizationLevel int
const ( OptimizationNone OptimizationLevel = iota OptimizationBasic OptimizationFull OptimizationAggressive )
type PlanOption ¶
type PlanOption = func(PlanOptions) error
func WithOptimizationLevel ¶
func WithOptimizationLevel(level OptimizationLevel) PlanOption
WithOptimizationLevel sets the optimization level for the execution plan.
type PlanOptions ¶
type PlanOptions interface {
SetOptimizationLevel(OptimizationLevel) error
}
type Position ¶
Position represents a specific point in a source file, defined by line and column numbers.
type Range ¶
Range represents a range of characters in a source file, including the location and span.
type SessionOption ¶
type SessionOption = func(SessionOptions) error
func WithOutputContentType ¶
func WithOutputContentType(contentType string) SessionOption
WithOutputContentType selects the output codec content type for session results.
func WithParam ¶
func WithParam(key string, value any) SessionOption
WithParam sets a session parameter for the execution.
func WithParams ¶
func WithParams(params map[string]any) SessionOption
WithParams merges the provided parameter map into the session environment, overriding existing keys while preserving any other previously defined parameters.
type SessionOptions ¶
type Source ¶
Source represents the input data for a Ferret query.
func NewAnonymousSource ¶
NewAnonymousSource creates a new anonymous Source instance with the given content.