pub struct FunctionInfo { /* private fields */ }Expand description
Helper wrapper around duckdb_function_info for use inside scan callbacks.
Implementations§
Source§impl FunctionInfo
impl FunctionInfo
Sourcepub const unsafe fn new(info: duckdb_function_info) -> Self
pub const unsafe fn new(info: duckdb_function_info) -> Self
Wraps a raw duckdb_function_info.
§Safety
info must be a valid duckdb_function_info provided by DuckDB in a scan callback.
Sourcepub fn set_error(&self, message: &str)
pub fn set_error(&self, message: &str)
Reports an error from the scan callback.
DuckDB will abort the query and propagate this as a SQL error.
An interior null byte in message is replaced by ?.
An empty message is replaced by EMPTY_ERROR_PLACEHOLDER.
Sourcepub unsafe fn get_extra_info(&self) -> *mut c_void
pub unsafe fn get_extra_info(&self) -> *mut c_void
Returns the extra info pointer set on the table function.
§Safety
The caller must ensure the returned pointer (if non-null) is used according to its original type.
Trait Implementations§
Auto Trait Implementations§
impl !Send for FunctionInfo
impl !Sync for FunctionInfo
impl Freeze for FunctionInfo
impl RefUnwindSafe for FunctionInfo
impl Unpin for FunctionInfo
impl UnsafeUnpin for FunctionInfo
impl UnwindSafe for FunctionInfo
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more