pub trait AsSql<'a> {
    // Required method
    fn as_sql(&'a self) -> SqlOutput<'a>;
}
Expand description

A helper trait for types we can’t implement rusqlite::ToSql for due to the orphan rule.

Required Methods§

source

fn as_sql(&'a self) -> SqlOutput<'a>

Convert this type to sql which might fail.

Implementations on Foreign Types§

source§

impl<'a, T> AsSql<'a> for Option<T>
where SqlOutput<'a>: From<&'a T>, T: 'a,

source§

fn as_sql(&'a self) -> SqlOutput<'_>

Implementors§

source§

impl<'a, T> AsSql<'a> for T
where SqlOutput<'a>: From<&'a T>, T: 'a,