MCPcopy Create free account
hub / github.com/dolthub/doltgresql / Function1

Struct Function1

server/functions/framework/functions.go:73–82  ·  view source on GitHub ↗

Function1 is a function that takes one parameter. The parameter and return type is passed into the Callable function when the parameter (and possibly return type) is a polymorphic type. The return type is the last type in the array.

Source from the content-addressed store, hash-verified

71// Function1 is a function that takes one parameter. The parameter and return type is passed into the Callable function
72// when the parameter (and possibly return type) is a polymorphic type. The return type is the last type in the array.
73type Function1 struct {
74 Name string
75 Return *pgtypes.DoltgresType
76 Parameters [1]*pgtypes.DoltgresType
77 Variadic bool
78 IsNonDeterministic bool
79 Strict bool
80 SRF bool
81 Callable func(ctx *sql.Context, paramsAndReturn [2]*pgtypes.DoltgresType, val1 any) (any, error)
82}
83
84// Function1N is a function that takes at least one parameter. This is different from a SQL variadic function, as the
85// additional parameters may have different types (that do not contribute to type deduction like with `anyelement`), and

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected