quackdb_internal::conversion

Trait BindParam

Source
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§

Source

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

Source§

unsafe fn bind_param_unchecked( self, stmt: duckdb_prepared_statement, param_idx: u64, ) -> Result<(), &'static str>

Source§

impl BindParam for &CStr

Source§

unsafe fn bind_param_unchecked( self, stmt: duckdb_prepared_statement, param_idx: u64, ) -> Result<(), &'static str>

Source§

impl BindParam for &[u8]

Source§

unsafe fn bind_param_unchecked( self, stmt: duckdb_prepared_statement, param_idx: u64, ) -> Result<(), &'static str>

Source§

impl BindParam for bool

Source§

unsafe fn bind_param_unchecked( self, stmt: duckdb_prepared_statement, param_idx: u64, ) -> Result<(), &'static str>

Source§

impl BindParam for f32

Source§

unsafe fn bind_param_unchecked( self, stmt: duckdb_prepared_statement, param_idx: u64, ) -> Result<(), &'static str>

Source§

impl BindParam for f64

Source§

unsafe fn bind_param_unchecked( self, stmt: duckdb_prepared_statement, param_idx: u64, ) -> Result<(), &'static str>

Source§

impl BindParam for i8

Source§

unsafe fn bind_param_unchecked( self, stmt: duckdb_prepared_statement, param_idx: u64, ) -> Result<(), &'static str>

Source§

impl BindParam for i16

Source§

unsafe fn bind_param_unchecked( self, stmt: duckdb_prepared_statement, param_idx: u64, ) -> Result<(), &'static str>

Source§

impl BindParam for i32

Source§

unsafe fn bind_param_unchecked( self, stmt: duckdb_prepared_statement, param_idx: u64, ) -> Result<(), &'static str>

Source§

impl BindParam for i64

Source§

unsafe fn bind_param_unchecked( self, stmt: duckdb_prepared_statement, param_idx: u64, ) -> Result<(), &'static str>

Source§

impl BindParam for i128

Source§

unsafe fn bind_param_unchecked( self, stmt: duckdb_prepared_statement, param_idx: u64, ) -> Result<(), &'static str>

Source§

impl BindParam for u8

Source§

unsafe fn bind_param_unchecked( self, stmt: duckdb_prepared_statement, param_idx: u64, ) -> Result<(), &'static str>

Source§

impl BindParam for u16

Source§

unsafe fn bind_param_unchecked( self, stmt: duckdb_prepared_statement, param_idx: u64, ) -> Result<(), &'static str>

Source§

impl BindParam for u32

Source§

unsafe fn bind_param_unchecked( self, stmt: duckdb_prepared_statement, param_idx: u64, ) -> Result<(), &'static str>

Source§

impl BindParam for u64

Source§

unsafe fn bind_param_unchecked( self, stmt: duckdb_prepared_statement, param_idx: u64, ) -> Result<(), &'static str>

Source§

impl BindParam for String

Source§

unsafe fn bind_param_unchecked( self, stmt: duckdb_prepared_statement, param_idx: u64, ) -> Result<(), &'static str>

Source§

impl BindParam for NaiveDate

Source§

unsafe fn bind_param_unchecked( self, stmt: duckdb_prepared_statement, param_idx: u64, ) -> Result<(), &'static str>

Source§

impl BindParam for NaiveDateTime

Source§

unsafe fn bind_param_unchecked( self, stmt: duckdb_prepared_statement, param_idx: u64, ) -> Result<(), &'static str>

Source§

impl BindParam for NaiveTime

Source§

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

Source§

unsafe fn bind_param_unchecked( self, stmt: duckdb_prepared_statement, param_idx: u64, ) -> Result<(), &'static str>

Source§

impl<Tz: TimeZone> BindParam for DateTime<Tz>

Source§

unsafe fn bind_param_unchecked( self, stmt: duckdb_prepared_statement, param_idx: u64, ) -> Result<(), &'static str>

Implementors§