⌘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 TypeInfo (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 ... arameter 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 ... r_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 ... FuncConfig{ InputTypeInfos: []duckdb.TypeInfo{inputType}, ResultTypeInfo: resultType, } } func (*varcharLen) Executor() duckdb.ScalarFuncExecutor { ...
https://man.mtool.work/duckdb/2.0/clients/go/functions.html
PREV 1 NEXT
DuckDB 2.0 Documentation / man.mtool.work