MCPcopy
hub / github.com/pingcap/tidb / WithInputSchemaAndNames

Function WithInputSchemaAndNames

pkg/expression/expression.go:82–88  ·  view source on GitHub ↗

WithInputSchemaAndNames specifies the input schema and names for the expression to build.

(schema *Schema, names types.NameSlice, table *model.TableInfo)

Source from the content-addressed store, hash-verified

80
81// WithInputSchemaAndNames specifies the input schema and names for the expression to build.
82func WithInputSchemaAndNames(schema *Schema, names types.NameSlice, table *model.TableInfo) BuildOption {
83 return func(options *BuildOptions) {
84 options.InputSchema = schema
85 options.InputNames = names
86 options.SourceTable = table
87 }
88}
89
90// WithAllowCastArray specifies whether to allow casting to an array type.
91func WithAllowCastArray(allow bool) BuildOption {

Calls

no outgoing calls