pub trait ToStatement {
// Required method
fn __convert(&self) -> ToStatementType<'_>;
}
Expand description
A trait abstracting over prepared and unprepared statements.
Many methods are generic over this bound, so that they support both a raw query string as well as a statement which was prepared previously.
This trait is “sealed” and cannot be implemented by anything outside this crate.
Required Methods§
Sourcefn __convert(&self) -> ToStatementType<'_>
fn __convert(&self) -> ToStatementType<'_>
A trait abstracting over prepared and unprepared statements.