pub trait ToSQL<'a, V>where
V: SQLParam,{
// Required method
fn to_sql(&self) -> SQL<'a, V>;
// Provided method
fn into_sql(self) -> SQL<'a, V>
where Self: Sized { ... }
}Expand description
Trait for types that can be converted to SQL fragments.
The 'a lifetime ties any borrowed parameter values to the resulting SQL
fragment, allowing zero-copy SQL construction when inputs are already
borrowed.
Required Methods§
Provided Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".