Skip to main content

quack_rs/scalar/builder/
mod.rs

1// SPDX-License-Identifier: MIT
2// Copyright 2026 Tom F. <https://github.com/tomtom215/>
3// My way of giving something small back to the open source community
4// and encouraging more Rust development!
5
6//! Builder for registering `DuckDB` scalar functions.
7//!
8//! Scalar functions take a data chunk of input rows and produce one output value
9//! per row. This is the most common function type in `DuckDB` extensions.
10
11pub(crate) mod collision;
12mod overload;
13mod set;
14pub(crate) mod signature;
15mod single;
16
17#[cfg(test)]
18mod tests;
19
20pub use overload::ScalarOverloadBuilder;
21pub use set::ScalarFunctionSetBuilder;
22#[cfg(feature = "duckdb-1-5")]
23pub use single::{ScalarBindFn, ScalarInitFn};
24pub use single::{ScalarFn, ScalarFunctionBuilder};