Trait butane::ToSql[][src]

pub trait ToSql {
    fn to_sql(&self) -> SqlVal;
fn to_sql_ref(&self) -> SqlValRef<'_>; fn into_sql(self) -> SqlVal { ... } }
Expand description

Used to convert another type to a SqlVal or SqlValRef.

Required methods

Provided methods

The default implementation simply calls to_sql. Provide an alternative implementation if greater efficiency can be realized by consuming self.

Implementations on Foreign Types

Implementors