planner

package
v0.0.0-...-df46cc1 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

Package planner provides functionality for planning the execution of queries.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Plan

func Plan(sqlString string, opts *Opts) (core.FlatRowSource, error)

Types

type Opts

type Opts struct {
	GetTable        func(table string, includedFields func(tableFields core.Fields) (core.Fields, error)) (Table, error)
	Now             func(table string) time.Time
	IsSubQuery      bool
	SubQueryResults [][]interface{}
	QueryCluster    QueryClusterFN
}

type QueryClusterFN

type QueryClusterFN func(ctx context.Context, sqlString string, isSubQuery bool, subQueryResults [][]interface{}, unflat bool, onFields core.OnFields, onRow core.OnRow, onFlatRow core.OnFlatRow) (interface{}, error)

type Table

type Table interface {
	core.RowSource
	GetPartitionBy() []string
}

Jump to

Keyboard shortcuts

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