pub trait Bind: Table {
// Required method
fn bind<'q, Q: Bindable<'q>>(
&'q self,
c: &'q Column<Self>,
query: Q,
) -> Result<Q>;
}Expand description
Trait for binding columns to SQL queries in the context of a specific table.
This trait should be implemented by table entities to enable the binding of their columns to SQL queries. It provides a method to bind a single column, ensuring that the query correctly reflects the structure and constraints of the table.
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.