WithInputSchemaAndNames specifies the input schema and names for the expression to build.
(schema *Schema, names types.NameSlice, table *model.TableInfo)
| 80 | |
| 81 | // WithInputSchemaAndNames specifies the input schema and names for the expression to build. |
| 82 | func 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. |
| 91 | func WithAllowCastArray(allow bool) BuildOption { |
no outgoing calls