Struct duckdb_extension_framework::InitInfo
source · pub struct InitInfo(_);Implementations
sourceimpl InitInfo
impl InitInfo
sourcepub unsafe fn set_init_data(
&self,
data: *mut c_void,
freeer: Option<unsafe extern "C" fn(_: *mut c_void)>
)
pub unsafe fn set_init_data(
&self,
data: *mut c_void,
freeer: Option<unsafe extern "C" fn(_: *mut c_void)>
)
sourcepub fn get_column_indices(&self) -> Vec<idx_t>
pub fn get_column_indices(&self) -> Vec<idx_t>
Returns the column indices of the projected columns at the specified positions.
This function must be used if projection pushdown is enabled to figure out which columns to emit.
returns: The column indices at which to get the projected column index
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
sourcepub fn get_bind_data<T>(&self) -> *const T
pub fn get_bind_data<T>(&self) -> *const T
Gets the bind data set by BindInfo::set_bind_data during the bind.
Note that the bind data should be considered as read-only. For tracking state, use the init data instead.
Arguments
returns: The bind data object
sourcepub fn set_max_threads(&self, max_threads: idx_t)
pub fn set_max_threads(&self, max_threads: idx_t)
Sets how many threads can process this table function in parallel (default: 1)
Arguments
max_threads: The maximum amount of threads that can process this table function
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for InitInfo
impl !Send for InitInfo
impl !Sync for InitInfo
impl Unpin for InitInfo
impl UnwindSafe for InitInfo
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more