⌘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 currentRow (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 ... 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.RowTableSource, error) { return &incrementTableUD ... F{ currentRow: 0, tableSize: args[0].(int64), }, nil } func (udf *incrementTableUDF) ColumnInfos() []duckdb.ColumnInfo { t, err := duckd ... t}} } func (udf *incrementTableUDF) Init() {} func (udf *incrementTableUDF) FillRow(row duckdb.Row) (bool, error) { if udf.currentRow+1 > udf.tableSize { return false, nil // no more rows: end the scan } udf.currentRow++ err := duckdb.SetRowValue(row, 0, u ...
https://man.mtool.work/duckdb/2.0/clients/go/functions.html
PREV 1 NEXT
DuckDB 2.0 Documentation / man.mtool.work