pub struct BindInfo { /* private fields */ }
Expand description
An interface to store and retrieve data during the function bind stage
Implementations§
Source§impl BindInfo
impl BindInfo
Sourcepub fn add_result_column(&self, column_name: &str, column_type: LogicalType)
pub fn add_result_column(&self, column_name: &str, column_type: LogicalType)
Adds a result column to the output of the table function.
§Arguments
name
: The name of the columntype
: The logical type of the column
Sourcepub unsafe fn set_bind_data(
&self,
data: *mut c_void,
free_function: Option<unsafe extern "C" fn(*mut c_void)>,
)
pub unsafe fn set_bind_data( &self, data: *mut c_void, free_function: Option<unsafe extern "C" fn(*mut c_void)>, )
Sourcepub fn get_parameter_count(&self) -> u64
pub fn get_parameter_count(&self) -> u64
Retrieves the number of regular (non-named) parameters to the function.
Sourcepub fn get_parameter(&self, param_index: u64) -> Value
pub fn get_parameter(&self, param_index: u64) -> Value
Retrieves the parameter at the given index.
§Arguments
index
: The index of the parameter to get
returns: The value of the parameter
Sourcepub fn set_cardinality(&self, cardinality: idx_t, is_exact: bool)
pub fn set_cardinality(&self, cardinality: idx_t, is_exact: bool)
Sets the cardinality estimate for the table function, used for optimization.
§Arguments
cardinality
: The cardinality estimateis_exact
: Whether or not the cardinality estimate is exact, or an approximation
Sourcepub fn get_extra_info<T>(&self) -> *const T
pub fn get_extra_info<T>(&self) -> *const T
Retrieves the extra info of the function as set in TableFunction::set_extra_info
§Arguments
returns
: The extra info
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BindInfo
impl RefUnwindSafe for BindInfo
impl !Send for BindInfo
impl !Sync for BindInfo
impl Unpin for BindInfo
impl UnwindSafe for BindInfo
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