⌘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 NewTypeInfo (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 ... t parameter types, the result type, and, for a variadic function, the variadic parameter type. Types are built with duckdb.NewTypeInfo() and the composite constructors such as duckdb.NewListInfo() . Executor() returns a duckdb.ScalarFuncExecutor holding the ... alar_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_INTEGER) check(err) return duckdb.Scalar ... ypeInfo in the config to accept a variable number of trailing arguments. The field takes a duckdb.TypeInfo , so use duckdb.NewTypeInfo(duckdb.TYPE_ANY) to accept arguments of any type: anyType, err := duckdb.NewTypeInfo(duckdb.TYPE_ANY) check(err) config := ...
https://man.mtool.work/duckdb/2.0/clients/go/functions.html
PREV 1 NEXT
DuckDB 2.0 Documentation / man.mtool.work