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.
| 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. |
| 73 | type 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 |
nothing calls this directly
no outgoing calls
no test coverage detected