Results of 1 - 1 of about 1 for LogicalTypeId (0.000 sec.)
- Write User Defined Functions 9414
- Overview The Rust client can register user-defined functions written in Rust: scalar functions with the vscalar feature and table functions with the vtab feature. Both operate on DuckDB's columnar data chunks, so a single call processes a b
...nd writes each result into the output vector: use duckdb::{ Connection, Result, core::{DataChunkHandle, LogicalTypeHandle, LogicalTypeId}, vscalar::{ScalarFunctionSignature, VScalar}, vtab::arrow::WritableVector, }; struct AddOne; impl VScalar for AddOne { //...(()) } fn signatures() -> Vec<ScalarFunctionSignature> { vec![ScalarFunctionSignature::exact( vec![LogicalTypeHandle::from(LogicalTypeId::Bigint)], LogicalTypeHandle::from(LogicalTypeId::Bigint), )] } } fn main() -> Result<()> { let conn = Connection::open_in...a, init state, and per-chunk execution model: use duckdb::{ Connection, Result, core::{DataChunkHandle, LogicalTypeHandle, LogicalTypeId}, vtab::{BindInfo, InitInfo, TableFunctionInfo, VTab}, }; use std::sync::atomic::{AtomicUsize, Ordering}; struct Numbers;... - https://man.mtool.work/duckdb/2.0/clients/rust/functions.html
PREV
1
NEXT
DuckDB 2.0 Documentation / man.mtool.work