pub struct BindInfoHandle { /* private fields */ }
Implementations§
Source§impl BindInfoHandle
impl BindInfoHandle
pub unsafe fn from_raw(handle: duckdb_bind_info) -> Self
pub fn get_extra_info(&self) -> *mut c_void
pub fn add_result_column(&self, name: &CStr, type_: &LogicalTypeHandle)
pub fn get_parameter_count(&self) -> u64
Sourcepub unsafe fn get_parameter(&self, index: u64) -> duckdb_value
pub unsafe fn get_parameter(&self, index: u64) -> duckdb_value
§Safety
- Index must be in range
- Result must be destroyed
Sourcepub unsafe fn get_named_parameter(&self, name: &CStr) -> duckdb_value
pub unsafe fn get_named_parameter(&self, name: &CStr) -> duckdb_value
§Safety
- Index must be in range
- Result must be destroyed
Sourcepub unsafe fn set_bind_data(
&self,
bind_data: *mut c_void,
destroy: duckdb_delete_callback_t,
)
pub unsafe fn set_bind_data( &self, bind_data: *mut c_void, destroy: duckdb_delete_callback_t, )
§Safety
- Takes ownership of
bind_data
destroy
must outliveself
destroy()
freesbind_data
pub fn set_cardinality(&self, cardinality: u64, is_exact: bool)
pub fn set_error(&self, error: &CStr)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BindInfoHandle
impl RefUnwindSafe for BindInfoHandle
impl !Send for BindInfoHandle
impl !Sync for BindInfoHandle
impl Unpin for BindInfoHandle
impl UnwindSafe for BindInfoHandle
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