Trait ToSql

Source
pub trait ToSql {
    // Required method
    fn to_sql(&self, s: &mut PreparedStatement, ix: ParamIx) -> SqliteResult<()>;
}
Expand description

Values that can be bound to parameters in prepared statements.

Required Methods§

Source

fn to_sql(&self, s: &mut PreparedStatement, ix: ParamIx) -> SqliteResult<()>

Bind the ixth parameter to this value (self).

Implementations on Foreign Types§

Source§

impl ToSql for bool

Source§

impl ToSql for f64

Source§

impl ToSql for i32

Source§

impl ToSql for i64

Source§

impl ToSql for String

Source§

impl ToSql for Timespec

Source§

impl<'a> ToSql for &'a [u8]

Source§

impl<T: ToSql + Clone> ToSql for Option<T>

Implementors§