Skip to main content

duck_extra_info

Macro duck_extra_info 

Source
macro_rules! duck_extra_info {
    ($ty:ty) => { ... };
}
Expand description

Returns a clone of the current table function’s registration-time “extra info” (see Connection::register_table_function_with_extra_info), from inside a #[duckdb_table_function] function body.

Type must be Clone — the macro always returns an independently owned value, never a reference into ambient context.

§Panics

Panics if called outside a table function callback registered with extra info, or if Type doesn’t match what was actually registered — contained by this crate’s callback machinery, so it always surfaces as a normal query error, never undefined behavior.