⌘K ctrl+k
Search Shortcut cmd + k | ctrl + k
DuckDB 2.0 ドキュメント 全文検索
per page, with , order by , clip by
Results of 1 - 1 of about 1 for ScalarFuncConfig (0.000 sec.)
Write User Defined Functions 9414
Overview The Go client can register user-defined functions written in Go: scalar functions that map input rows to a single output value, and table functions that produce a set of rows. It can also register a replacement scan that rewrites a ... ar function is a Go type that implements the duckdb.ScalarFunc interface, which has two methods: Config() returns a duckdb.ScalarFuncConfig declaring the input parameter types, the result type, and, for a variadic function, the variadic parameter type. Types are ... R) -> INTEGER , adapted from the client's scalar_udf example : type varcharLen struct{} func (*varcharLen) Config() duckdb.ScalarFuncConfig { inputType, err := duckdb.NewTypeInfo(duckdb.TYPE_VARCHAR) check(err) resultType, err := duckdb.NewTypeInfo(duckdb.TYPE_I ... NTEGER) check(err) return duckdb.ScalarFuncConfig{ InputTypeInfos: []duckdb.TypeInfo{inputType}, ResultTypeInfo: resultType, } } func (*varcharLen) Executor() duckdb.Scalar ...
https://man.mtool.work/duckdb/2.0/clients/go/functions.html
PREV 1 NEXT
DuckDB 2.0 Documentation / man.mtool.work