Skip to content

Commit 38cc0ec

Browse files
committed
Document Clone bound
1 parent c63f7c3 commit 38cc0ec

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

crates/duckdb/src/vscalar/function.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,6 @@ impl ScalarFunction {
131131
///
132132
/// # Arguments
133133
/// * `info`: The extra information to store
134-
/// ```
135134
pub fn set_extra_info<T>(&self, info: T) -> &Self
136135
where
137136
T: Send + Sync + 'static,

crates/duckdb/src/vscalar/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,8 @@ impl Connection {
151151
}
152152

153153
/// Register the given ScalarFunction with custom state.
154+
///
155+
/// The state is cloned once per function signature (overload) and stored in DuckDB's catalog.
154156
#[inline]
155157
pub fn register_scalar_function_with_state<S: VScalar>(&self, name: &str, state: &S::State) -> crate::Result<()>
156158
where

crates/duckdb/src/vtab/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,8 @@ impl Connection {
155155
///
156156
/// This allows you to pass extra info that can be accessed during bind, init, and execution
157157
/// via `BindInfo::get_extra_info`, `InitInfo::get_extra_info`, or `TableFunctionInfo::get_extra_info`.
158+
///
159+
/// The extra info is cloned once during registration and stored in DuckDB's catalog.
158160
#[inline]
159161
pub fn register_table_function_with_extra_info<T: VTab, E>(&self, name: &str, extra_info: &E) -> Result<()>
160162
where

0 commit comments

Comments
 (0)