pub struct TableFunction { /* private fields */ }
Expand description
A function that returns a queryable table
Implementations§
Source§impl TableFunction
impl TableFunction
Sourcepub fn supports_pushdown(&self, supports: bool) -> &Self
pub fn supports_pushdown(&self, supports: bool) -> &Self
Sets whether or not the given table function supports projection pushdown.
If this is set to true, the system will provide a list of all required columns in the init
stage through
the InitInfo::get_column_indices
method.
If this is set to false (the default), the system will expect all columns to be projected.
§Arguments
pushdown
: True if the table function supports projection pushdown, false otherwise.
Sourcepub fn add_parameter(&self, logical_type: &LogicalType) -> &Self
pub fn add_parameter(&self, logical_type: &LogicalType) -> &Self
Sourcepub fn set_function(
&self,
func: Option<unsafe extern "C" fn(*mut c_void, *mut c_void)>,
) -> &Self
pub fn set_function( &self, func: Option<unsafe extern "C" fn(*mut c_void, *mut c_void)>, ) -> &Self
Sourcepub fn set_name(&self, name: &str) -> &TableFunction
pub fn set_name(&self, name: &str) -> &TableFunction
Sourcepub unsafe fn set_extra_info(
&self,
extra_info: *mut c_void,
destroy: duckdb_delete_callback_t,
)
pub unsafe fn set_extra_info( &self, extra_info: *mut c_void, destroy: duckdb_delete_callback_t, )
Sourcepub fn set_local_init(&self, init: duckdb_table_function_init_t)
pub fn set_local_init(&self, init: duckdb_table_function_init_t)
Trait Implementations§
Source§impl Debug for TableFunction
impl Debug for TableFunction
Source§impl Default for TableFunction
impl Default for TableFunction
Auto Trait Implementations§
impl Freeze for TableFunction
impl RefUnwindSafe for TableFunction
impl !Send for TableFunction
impl !Sync for TableFunction
impl Unpin for TableFunction
impl UnwindSafe for TableFunction
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