core

package
v0.4.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 21, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Optimizer

type Optimizer interface {
	// Optimize optimizes the given SQL statement and returns an execution plan.
	// Returns an error if optimization fails.
	Optimize(ctx context.Context, stmt *parser.SQLStatement) (*plan.Plan, error)

	// Explain returns a string representation of the optimizer's configuration.
	Explain() string
}

Optimizer is the interface for query optimizers. It takes a SQL statement and produces an optimized execution plan.

type OptimizerFactory

type OptimizerFactory interface {
	// CreateOptimizer creates a basic optimizer for the given data source.
	CreateOptimizer(dataSource interface{}) Optimizer

	// CreateEnhancedOptimizer creates an enhanced optimizer with advanced features
	// such as cost-based optimization, index selection, and join reordering.
	CreateEnhancedOptimizer(dataSource interface{}, parallelism int) Optimizer
}

OptimizerFactory is the interface for creating optimizer instances. It provides factory methods for different types of optimizers.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL