MCPcopy Create free account
hub / github.com/araddon/qlbridge / buildColIndex

Function buildColIndex

plan/planner_select.go:162–168  ·  view source on GitHub ↗

Build Column Name to Position index for given *source* (from) used to interpret positional []driver.Value args, mutate the *from* itself to hold this map

(colSchema schema.ConnColumns, p *Source)

Source from the content-addressed store, hash-verified

160// Build Column Name to Position index for given *source* (from) used to interpret
161// positional []driver.Value args, mutate the *from* itself to hold this map
162func buildColIndex(colSchema schema.ConnColumns, p *Source) error {
163 if p.Stmt.Source == nil {
164 u.Errorf("Could not build Column-Index bc no source %#v", p)
165 return nil
166 }
167 return p.Stmt.BuildColIndex(colSchema.Columns())
168}
169
170// WalkSourceSelect is a single source select
171func (m *PlannerDefault) WalkSourceSelect(p *Source) error {

Callers 1

WalkSourceSelectMethod · 0.85

Calls 3

ErrorfMethod · 0.80
BuildColIndexMethod · 0.80
ColumnsMethod · 0.65

Tested by

no test coverage detected