⌘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 incrementTableUDF (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 ... crement(BIGINT) , which returns one row per integer up to the argument, adapted from the client's table_udf example : type incrementTableUDF struct { tableSize int64 currentRow int64 } func bindTableUDF(namedArgs map[string]any, args ...any) (duckdb.RowTableSourc ... e, error) { return &incrementTableUDF{ currentRow: 0, tableSize: args[0].(int64), }, nil } func (udf *incrementTableUDF) ColumnInfos() []duckdb.ColumnInfo { t, ... err := duckdb.NewTypeInfo(duckdb.TYPE_BIGINT) check(err) return []duckdb.ColumnInfo{{Name: "result", T: t}} } func (udf *incrementTableUDF) Init() {} func (udf *incrementTableUDF) FillRow(row duckdb.Row) (bool, error) { if udf.currentRow+1 > udf.tableSize { ret ...
https://man.mtool.work/duckdb/2.0/clients/go/functions.html
PREV 1 NEXT
DuckDB 2.0 Documentation / man.mtool.work