pub trait Bindable<'q> {
// Required method
fn dyn_bind<T: 'q + Send + Encode<'q, Driver> + Type<Driver>>(
self,
value: T,
) -> Self;
}Expand description
Trait for dynamic binding of values.
Bindable provides an abstraction over different types of SQL queries, such as
sqlx::query::Query and sqlx::query::QueryAs, allowing for flexible and dynamic binding of
values. It is designed to work with various query types and enables the binding of values with
different types and constraints.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.