pub unsafe trait BindParam {
// Required method
unsafe fn bind_param_unchecked(
self,
stmt: duckdb_prepared_statement,
param_idx: u64,
) -> Result<(), &'static str>;
}
Expand description
Values that can bind to prepared statements
Required Methods§
Sourceunsafe fn bind_param_unchecked(
self,
stmt: duckdb_prepared_statement,
param_idx: u64,
) -> Result<(), &'static str>
unsafe fn bind_param_unchecked( self, stmt: duckdb_prepared_statement, param_idx: u64, ) -> Result<(), &'static str>
§Safety
Does not need to check whether the type is correct or whether index is in bounds.
Implementations on Foreign Types§
Source§impl BindParam for &str
impl BindParam for &str
unsafe fn bind_param_unchecked( self, stmt: duckdb_prepared_statement, param_idx: u64, ) -> Result<(), &'static str>
Source§impl BindParam for &CStr
impl BindParam for &CStr
unsafe fn bind_param_unchecked( self, stmt: duckdb_prepared_statement, param_idx: u64, ) -> Result<(), &'static str>
Source§impl BindParam for &[u8]
impl BindParam for &[u8]
unsafe fn bind_param_unchecked( self, stmt: duckdb_prepared_statement, param_idx: u64, ) -> Result<(), &'static str>
Source§impl BindParam for bool
impl BindParam for bool
unsafe fn bind_param_unchecked( self, stmt: duckdb_prepared_statement, param_idx: u64, ) -> Result<(), &'static str>
Source§impl BindParam for f32
impl BindParam for f32
unsafe fn bind_param_unchecked( self, stmt: duckdb_prepared_statement, param_idx: u64, ) -> Result<(), &'static str>
Source§impl BindParam for f64
impl BindParam for f64
unsafe fn bind_param_unchecked( self, stmt: duckdb_prepared_statement, param_idx: u64, ) -> Result<(), &'static str>
Source§impl BindParam for i8
impl BindParam for i8
unsafe fn bind_param_unchecked( self, stmt: duckdb_prepared_statement, param_idx: u64, ) -> Result<(), &'static str>
Source§impl BindParam for i16
impl BindParam for i16
unsafe fn bind_param_unchecked( self, stmt: duckdb_prepared_statement, param_idx: u64, ) -> Result<(), &'static str>
Source§impl BindParam for i32
impl BindParam for i32
unsafe fn bind_param_unchecked( self, stmt: duckdb_prepared_statement, param_idx: u64, ) -> Result<(), &'static str>
Source§impl BindParam for i64
impl BindParam for i64
unsafe fn bind_param_unchecked( self, stmt: duckdb_prepared_statement, param_idx: u64, ) -> Result<(), &'static str>
Source§impl BindParam for i128
impl BindParam for i128
unsafe fn bind_param_unchecked( self, stmt: duckdb_prepared_statement, param_idx: u64, ) -> Result<(), &'static str>
Source§impl BindParam for u8
impl BindParam for u8
unsafe fn bind_param_unchecked( self, stmt: duckdb_prepared_statement, param_idx: u64, ) -> Result<(), &'static str>
Source§impl BindParam for u16
impl BindParam for u16
unsafe fn bind_param_unchecked( self, stmt: duckdb_prepared_statement, param_idx: u64, ) -> Result<(), &'static str>
Source§impl BindParam for u32
impl BindParam for u32
unsafe fn bind_param_unchecked( self, stmt: duckdb_prepared_statement, param_idx: u64, ) -> Result<(), &'static str>
Source§impl BindParam for u64
impl BindParam for u64
unsafe fn bind_param_unchecked( self, stmt: duckdb_prepared_statement, param_idx: u64, ) -> Result<(), &'static str>
Source§impl BindParam for String
impl BindParam for String
unsafe fn bind_param_unchecked( self, stmt: duckdb_prepared_statement, param_idx: u64, ) -> Result<(), &'static str>
Source§impl BindParam for NaiveDate
impl BindParam for NaiveDate
unsafe fn bind_param_unchecked( self, stmt: duckdb_prepared_statement, param_idx: u64, ) -> Result<(), &'static str>
Source§impl BindParam for NaiveDateTime
impl BindParam for NaiveDateTime
unsafe fn bind_param_unchecked( self, stmt: duckdb_prepared_statement, param_idx: u64, ) -> Result<(), &'static str>
Source§impl BindParam for NaiveTime
impl BindParam for NaiveTime
unsafe fn bind_param_unchecked( self, stmt: duckdb_prepared_statement, param_idx: u64, ) -> Result<(), &'static str>
Source§impl<T> BindParam for Option<T>where
T: BindParam,
Option<T>
corresponds to nullable columns
impl<T> BindParam for Option<T>where
T: BindParam,
Option<T>
corresponds to nullable columns